Performs the following checks:
Check that ollama is installed
Check that ollama is running
Check that ollama has the required models, and download if not
The required models are the Jina AI embeddings: https://ollama.com/jina/jina-embeddings-v2-base-en for text embeddings, and https://ollama.com/ordis/jina-embeddings-v2-base-code for code embeddings.
Note that the URL of a locally-running ollama instance is presumed by default to be "127.0.0.1:11434". Other values can be set using the set_ollama_url function.
Value
TRUE if everything works okay, otherwise the function will error before returning, and issue an informative error message.
See also
Other ollama:
get_ollama_url()
,
set_ollama_url()