mirror of
https://github.com/hwchase17/langchain.git
synced 2026-04-23 20:23:59 +00:00
Update __from
This commit is contained in:
@@ -316,12 +316,7 @@ class FAISS(VectorStore):
|
||||
docstore = InMemoryDocstore(
|
||||
{index_to_id[i]: doc for i, doc in enumerate(documents)}
|
||||
)
|
||||
return cls(
|
||||
embedding.embed_query,
|
||||
index,
|
||||
docstore,
|
||||
index_to_id,
|
||||
)
|
||||
return cls(embedding.embed_query, index, docstore, index_to_id, **kwargs)
|
||||
|
||||
@classmethod
|
||||
def from_texts(
|
||||
|
||||
Reference in New Issue
Block a user