chroma-core / chroma

the AI-native open-source embedding database
https://www.trychroma.com/
Apache License 2.0
14.73k stars 1.23k forks source link

No OllamaEmbeddingFunction in latest release of chromadb/npm module #2149

Closed hostlund closed 4 months ago

hostlund commented 4 months ago

What happened?

It seems that OllamaEmbeddingFunction is missing in the latest chromadb release to npm.

Versions

Docker: Chroma 0.5

Node: chromadb: ^1.8.1

Relevant log output

Export named 'OllamaEmbeddingFunction' not found in module /node_modules/chromadb/dist/chromadb.mjs
tazarov commented 4 months ago

@hostlund, Thanks for pointing this out. We're discussing it on Discord. We'll release a new version shortly. I appreciate your patience 🥇

hostlund commented 4 months ago

@tazarov Thanks for the quick answer and resolution.

tazarov commented 4 months ago

@hostlund, here it is https://www.npmjs.com/package/chromadb/v/1.9.1

Please test and let me know if we can close this issue.

hostlund commented 4 months ago

@tazarov It works, tried local with llama2 and llama3 and got some vectors back. So version 1.9.1 expose OllamaEmbeddingFunction.

Thanks for a quick fix.

tazarov commented 4 months ago

@hostlund, if you are planning to use Ollama EF use one of the embedding models:

The above models produce much more compact vector representations than llama2/3 (4096 dims).