Open justin107d opened 2 months ago
pip install llama-index-llms-ollama
from llama_index.llms.ollama import Ollama
llm = Ollama(model="phi3", request_timeout=30.0)
response = llm.complete("What is the capital of France?")
print(response)
https://docs.llamaindex.ai/en/stable/api_reference/llms/ollama/
This is not an error specific to this project but I have been unable to get the repos on
llama_index
to work on my computer. I have looked around on the llama_index issue forums and the only advice I have gotten was to reinstall or roll back and I still get similar errors. Does anyone else have similar issues?Commands used:
Error:
If it helps, the cmake file failed when loading
llama_cpp_python