Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pinecone: Fix multiprocessing issue in PineconeVectorStore #22571

Merged

Conversation

Vwake04
Copy link
Contributor

@Vwake04 Vwake04 commented Jun 5, 2024

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.

@efriis efriis added the partner label Jun 5, 2024
@efriis efriis self-assigned this Jun 5, 2024
Copy link

vercel bot commented Jun 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jun 21, 2024 3:41pm

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Ɑ: vector store Related to vector store module 🔌: pinecone Primarily related to Pinecone vector store integration 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Jun 5, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jun 6, 2024
@Vwake04 Vwake04 requested a review from efriis June 6, 2024 16:11
@Vwake04 Vwake04 closed this Jun 8, 2024
@Vwake04 Vwake04 reopened this Jun 8, 2024
@Vwake04
Copy link
Contributor Author

Vwake04 commented Jun 8, 2024

@efriis could you please review this?

@Vwake04
Copy link
Contributor Author

Vwake04 commented Jun 13, 2024

@efriis any updates on this?

@Vwake04
Copy link
Contributor Author

Vwake04 commented Jun 15, 2024

Hey @efriis could you please review this PR and make the necessary approvals?

@Vwake04
Copy link
Contributor Author

Vwake04 commented Jun 18, 2024

@efriis could you please review the changes and update the PR?

@Vwake04
Copy link
Contributor Author

Vwake04 commented Jun 20, 2024

@efriis could you please have a look at this PR?

@Vwake04 Vwake04 marked this pull request as draft June 20, 2024 06:29
@Vwake04 Vwake04 marked this pull request as ready for review June 20, 2024 06:30
@Vwake04
Copy link
Contributor Author

Vwake04 commented Jun 21, 2024

@efriis Any updates on this?

@efriis efriis enabled auto-merge (squash) June 21, 2024 15:45
@efriis efriis merged commit 0deb98a into langchain-ai:master Jun 21, 2024
25 checks passed
@Vwake04
Copy link
Contributor Author

Vwake04 commented Jun 21, 2024

Thanks 🙏 @efriis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature lgtm PR looks good. Use to confirm that a PR is ready for merging. partner 🔌: pinecone Primarily related to Pinecone vector store integration size:M This PR changes 30-99 lines, ignoring generated files. Ɑ: vector store Related to vector store module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants