Skip to content
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

[Bug]: Missing OllamaEmbeddingFunction when using chromadb==0.5.0 #2172

Closed
SingTeng opened this issue May 9, 2024 · 2 comments
Closed

[Bug]: Missing OllamaEmbeddingFunction when using chromadb==0.5.0 #2172

SingTeng opened this issue May 9, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@SingTeng
Copy link

SingTeng commented May 9, 2024

What happened?

Getting error when using chromadb==0.5.0 with Python.
AttributeError: module 'chromadb.utils.embedding_functions' has no attribute 'OllamaEmbeddingFunction'

Code below:

from chromadb.utils import embedding_functions
ef = embedding_functions.OllamaEmbeddingFunction(
url="xxxx",
model_name="nomic-embed-text",
)

Versions

Chromav0.5.0, Python 3.11.5

Relevant log output

AttributeError: module 'chromadb.utils.embedding_functions' has no attribute 'OllamaEmbeddingFunction'
@SingTeng SingTeng added the bug Something isn't working label May 9, 2024
@tazarov tazarov self-assigned this May 9, 2024
@tazarov
Copy link
Contributor

tazarov commented May 9, 2024

@SingTeng, thanks for raising this. I can see that we've releases the Ollama EF in 0.5.0 - https://github.com/chroma-core/chroma/releases/tag/0.5.0.

I just tested in collab - https://colab.research.google.com/drive/11MbioP_NtaVnE8OGvvinlXrY_hGpDZa6?usp=sharing, and it seems to work. Are you sure your venv has the correct Chroma version?

import chromadb

print(chromadb.__version__)

@SingTeng
Copy link
Author

SingTeng commented May 9, 2024

Thank you for the prompt reply. I restart the kernel and re-test it and its now working fine.

@SingTeng SingTeng closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants