langchain
1ee20854 - langchain: fix pinecone upsert when async_req is set to False (#19793)

Commit
1 year ago
langchain: fix pinecone upsert when async_req is set to False (#19793) Issue: When async_req is the default value True, pinecone client return the multiprocessing AsyncResult object. When async_req is set to False, pinecone client return the result directly. `[{'upserted_count': 1}]` . Calling get() method will throw an error in this case.
Parents
Loading