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
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>
4 months ago
..
cli cli[minor]: remove redefined DEFAULT_GIT_REF (#21471) 4 months ago
community core[patch]: fix no current event loop for sql history in async mode (#22933) 4 months ago
core core[minor]: BaseChatModel with_structured_output implementation (#22859) 4 months ago
experimental core[minor]: BaseChatModel with_structured_output implementation (#22859) 4 months ago
langchain core[minor]: Update pgvector transalor for langchain_postgres (#23217) 4 months ago
partners pinecone: Fix multiprocessing issue in PineconeVectorStore (#22571) 4 months ago
standard-tests standard tests: add test for tool calling (#23234) 4 months ago
text-splitters text-splitters: Fix/recursive json splitter data persistence issue (#21529) 4 months ago