Memory (ChromaDB) embedding_function support #6282
Replies: 2 comments 1 reply
-
I think, I got it working by specifying the embedding_function in the chormadb collection before setting the ChromaDBVectorMemoryConfig, but I have to do more testing. It will be great if would support the embedding_function directly in PersistentChromaDBVectorMemoryConfig --- EMBEDDING FUNCTION (Local SentenceTransformer) ---emb_fn = embedding_functions.SentenceTransformerEmbeddingFunction( --- CHROMADB SET UP ---Step 2: Set up ChromaDB client with embedding functionchroma_client = chromadb.Client(Settings( Step 3: Create or load the collection WITH embeddingcollections = chroma_client.get_or_create_collection( --- RAG-ENABLED AUTO-GEN SETUP WITH CHROMADB ---vector_memory = ChromaDBVectorMemory( |
Beta Was this translation helpful? Give feedback.
-
I wasn't aware a suggested solution has already been made in #6267 |
Beta Was this translation helpful? Give feedback.
-
Does ChromaDBVectorMemory support embedding_functions such as OpenAIEmbeddingFunction?
I can't see an
embedding_function
input argument in PersistentChromaDBVectorMemoryConfig, and I'm not sure how else to specify an embedding model such as "text-embedding-3-large"Thanks!
Beta Was this translation helpful? Give feedback.
All reactions