Getting error while importing Ollama from 'llama_index.llms' in Linux OS.
from llama_index.llms import Ollama
response = llm.complete(f"What is code?")
print(response)
I installed Ollama from, curl -fsSL https://ollama.com/install.sh | sh
Also Installed , pip3 install llama-index qdrant_client torch transformers
Its installed successfully.
On running , I am getting -
ImportError: cannot import name 'Ollama' from 'llama_index.llms' (unknown location)
I have the same issue but from https://docs.llamaindex.ai/en/stable/understanding/using_llms/using_llms.html, the import should be:
Still, it doesn't work for me and I suspect there is specific module to install but I don't know which one...
EDIT: found!!! You have to install llama-index-llms-ollama