You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/partners
Vwake04 0deb98ac0c
pinecone: Fix multiprocessing issue in PineconeVectorStore (#22571)
**Description:**

Currently, the `langchain_pinecone` library forces the `async_req`
(asynchronous required) argument to Pinecone to `True`. This design
choice causes problems when deploying to environments that do not
support multiprocessing, such as AWS Lambda. In such environments, this
restriction can prevent users from successfully using
`langchain_pinecone`.

This PR introduces a change that allows users to specify whether they
want to use asynchronous requests by passing the `async_req` parameter
through `**kwargs`. By doing so, users can set `async_req=False` to
utilize synchronous processing, making the library compatible with AWS
Lambda and other environments that do not support multithreading.

**Issue:**
This PR does not address a specific issue number but aims to resolve
compatibility issues with AWS Lambda by allowing synchronous processing.

**Dependencies:**
None, that I'm aware of.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
3 months ago
..
ai21 ai21: docstrings (#23142) 4 months ago
airbyte airbyte[patch]: airbyte-cdk compatible pydantic versions (#21738) 5 months ago
anthropic anthropic[patch]: test image input (#23155) 4 months ago
azure-dynamic-sessions docs: add aca-ds (#21746) 5 months ago
chroma partners: fix numpy dep (#22858) 4 months ago
couchbase couchbase: Add the initial version of Couchbase partner package (#22087) 4 months ago
exa multiple: releases with relaxed core dep (#21724) 5 months ago
fireworks partners[minor]: Fix value error message for with_structured_output (#22877) 4 months ago
groq partners[minor]: Fix value error message for with_structured_output (#22877) 4 months ago
huggingface huggingface: docstrings (#23148) 4 months ago
ibm ibm: docstrings (#23149) 4 months ago
milvus milvus[patch]: Release 0.1.1 (#22499) 4 months ago
mistralai openai[patch], standard-tests[patch]: don't pass in falsey stop vals (#23153) 4 months ago
mongodb partners: fix numpy dep (#22858) 4 months ago
nomic nomic[patch]: Release 0.1.2 (#22561) 4 months ago
openai openai: release 0.1.9 (#23263) 3 months ago
pinecone pinecone: Fix multiprocessing issue in PineconeVectorStore (#22571) 3 months ago
prompty prompty: docstring (#23152) 4 months ago
qdrant qdrant[patch]: Use collection_exists API instead of exceptions (#22764) 4 months ago
robocorp robocorp: typo (#22509) 4 months ago
together openai[patch], standard-tests[patch]: don't pass in falsey stop vals (#23153) 4 months ago
upstage upstage: move to external repo (#22506) 4 months ago
voyageai partners: Remove unnecessary print from voyageai embeddings (#21865) 5 months ago