diff --git a/libs/partners/pinecone/langchain_pinecone/vectorstores.py b/libs/partners/pinecone/langchain_pinecone/vectorstores.py index 0f6da9d827045..9a6ab8bb3d692 100644 --- a/libs/partners/pinecone/langchain_pinecone/vectorstores.py +++ b/libs/partners/pinecone/langchain_pinecone/vectorstores.py @@ -112,6 +112,8 @@ def add_texts( namespace: Optional[str] = None, batch_size: int = 32, embedding_chunk_size: int = 1000, + *, + async_req: bool = True, **kwargs: Any, ) -> List[str]: """Run more texts through the embeddings and add to the vectorstore. @@ -153,7 +155,7 @@ def add_texts( self._index.upsert( vectors=batch, namespace=namespace, - async_req=True, + async_req=async_req, **kwargs, ) for batch in batch_iterate( @@ -206,6 +208,9 @@ def similarity_search_by_vector_with_score( namespace=namespace, filter=filter, ) + import pdb + + pdb.set_trace() for res in results["matches"]: metadata = res["metadata"] if self._text_key in metadata: