Error in documentation: Chroma constructor (#5731)

Chroma("langchain_store", embeddings.embed_query) must be
Chroma("langchain_store", embeddings)
This commit is contained in:
Gustavo Brian
2023-06-05 22:30:58 +02:00
committed by GitHub
parent 019eb13681
commit 2f2d27fd82

View File

@@ -50,7 +50,7 @@ class Chroma(VectorStore):
from langchain.embeddings.openai import OpenAIEmbeddings
embeddings = OpenAIEmbeddings()
vectorstore = Chroma("langchain_store", embeddings.embed_query)
vectorstore = Chroma("langchain_store", embeddings)
"""
_LANGCHAIN_DEFAULT_COLLECTION_NAME = "langchain"