mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
Error in documentation: Chroma constructor (#5731)
Chroma("langchain_store", embeddings.embed_query) must be Chroma("langchain_store", embeddings)
This commit is contained in:
parent
019eb13681
commit
2f2d27fd82
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user