The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fixes iter error in FAISS add_embeddings call (#5367)
Matt Wells9a5c9df80905
diff --git a/langchain/vectorstores/faiss.py b/langchain/vectorstores/faiss.pyindex 6945f0cc18..cf17028748 100644--- a/langchain/vectorstores/faiss.py+++ b/langchain/vectorstores/faiss.py@@ -175,9 +175,8 @@ class FAISS(VectorStore):f"adding items, which {self.docstore} does not")# Embed and create the documents.+ texts, embeddings = zip(*text_embeddings)- texts = [te[0] for te in text_embeddings]- embeddings = [te[1] for te in text_embeddings]return self.__add(texts, embeddings, metadatas=metadatas, ids=ids, **kwargs)def similarity_search_with_score_by_vector(