Skip to content

Commit

Permalink
async
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Jan 31, 2024
1 parent 655e4d7 commit fa4ba0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/partners/pinecone/langchain_pinecone/vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit fa4ba0c

Please sign in to comment.