You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
claude-mem has no way to configure the embedding model. It's hardcoded to the local ONNX default (all-MiniLM-L6-v2, 384-dim), which is weak for non-English text (e.g. Vietnamese) and lower quality than modern models.
Current behavior
Two layers block customization:
worker-service.cjs calls chroma_create_collection({collection_name}) with no embedding_function_name, hardcodes --with ["onnxruntime>=1.20","protobuf<7"] (no openai), and exposes no CLAUDE_MEM_EMBED env.
chroma-mcp 0.2.6 instantiates the EF with no args and never passes an EF to get_collection, so everything defaults to ONNX. (chromadb 1.0.16 HttpClient also doesn't rehydrate a persisted custom EF on read, so pre-creating collections doesn't help.)
When set, the worker should: add the provider package to the uvx --with list, pass embedding_function_name to chroma_create_collection, and ensure the same EF (with base/model/dims) is applied on read paths.
Workaround (current)
Patching worker-service.cjs (--with openai + --dotenv-path) and chroma-mcp's server.py (force the OpenAI EF on all collection ops). Works but is lost on every plugin update and uv cache clean.
Benefit
Much better multilingual + higher-quality recall, opt-in, no breaking change to the ONNX default.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Current behavior
Two layers block customization:
Proposed solution
Add env-driven embedding config, e.g.:
When set, the worker should: add the provider package to the uvx --with list, pass embedding_function_name to chroma_create_collection, and ensure the same EF (with base/model/dims) is applied on read paths.
Workaround (current)
Patching worker-service.cjs (--with openai + --dotenv-path) and chroma-mcp's server.py (force the OpenAI EF on all collection ops). Works but is lost on every plugin update and uv cache clean.
Benefit
Much better multilingual + higher-quality recall, opt-in, no breaking change to the ONNX default.
Beta Was this translation helpful? Give feedback.
All reactions