-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Creator not registered for key: LLMType.OLLAMA #1553
Comments
@vanhocpham try the main branch, it supports ollama in |
@better629 i using pip install is working? |
@vanhocpham refs to
|
@better629 Thanks, I will try and get back to you |
@better629 I tried the way you instructed but another error occurred
|
Try removing "/api" from the base_url of the embedding, such as embedding:
api_type: "ollama"
model: "hf.co/hugging-quants/Llama-3.2-3B-Instruct-Q8_0-GGUF"
base_url: "http://127.0.0.1:11434" |
Bug description
I using MetaGPT ver 0.8.1 but when use RAG with method SimpleEngine.from_docs have error ValueError: Creator not registered for key: LLMType.OLLAMA
Environment information
Screenshots or logs
config2.yaml
embedding:
api_type: "ollama"
model: "hf.co/hugging-quants/Llama-3.2-3B-Instruct-Q8_0-GGUF"
base_url: "http://127.0.0.1:11434/api"
llm:
api_type: "ollama"
model: "hf.co/hugging-quants/Llama-3.2-3B-Instruct-Q8_0-GGUF"
base_url: "http://127.0.0.1:11434/api"
Error Response
/usr/local/lib/python3.10/dist-packages/metagpt/rag/factories/base.py in get_instance(self, key, **kwargs)
27 return creator(**kwargs)
28
---> 29 raise ValueError(f"Creator not registered for key: {key}")
30
31
ValueError: Creator not registered for key: LLMType.OLLAMA
The text was updated successfully, but these errors were encountered: