DSPy: The framework for programming—not prompting—language models
Python
fix: default collection embedding function attribute in ChromadbRM constructor
ragul-kachiappanbafb475c7e6a
diff --git a/dspy/retrieve/chromadb_rm.py b/dspy/retrieve/chromadb_rm.pyindex 1338d48d5..b55fec8ff 100644--- a/dspy/retrieve/chromadb_rm.py+++ b/dspy/retrieve/chromadb_rm.py@@ -74,7 +74,7 @@ class ChromadbRM(dspy.Retrieve):k: int = 7,):self._init_chromadb(collection_name, persist_directory)- self.ef = embedding_function or self._chromadb_collection.embedding_function+ self.ef = embedding_function or self._chromadb_collection._embedding_functionsuper().__init__(k=k)