I have been trying to use
Chromadb
version0.4.8
Langchain
version0.0.276
with SentenceTransformerEmbeddingFunction
as shown in the snippet below.
from langchain.vectorstores import Chroma
from chromadb.utils import embedding_functions
# other imports
embedding = embedding_functions.SentenceTransformerEmbeddingFunction(model_name="all-MiniLM-L6-v2")
However, it throws the following error.
AttributeError: 'SentenceTransformerEmbeddingFunction' object has no attribute 'embed_documents'
Would appreciate any help. Thank you.