-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
FileNotFoundError in PineconeVectorStore.from_documents on AWS Lambda #22325
Comments
I found a similar issue in the LangChain community, which was addressed and resolved through a PR by nelsonauner. However, this fix is not present in the I can add a PR to incorporate this change into the |
@Vwake04 Can you help me use |
I'm maintaining my own version of |
Good news is that the changes by @nelsonauner and @Vwake04 have been committed to master branch on commit 0deb98a 11 hours ago. Just waiting on the update for https://pypi.org/project/langchain-pinecone/#history now. If I understand correctly, once the changes have been published we'll just need to add a parameter vector_store = PineconeVectorStore.from_documents(
split_documents,
index_name=index_name,
embedding=embeddings,
async_req=False
) Temporary workaroundGet a copy of the updated file, and save it on the same directory that uses Then you can import it as such. Instead of
You would use:
Then follow the usage noted above. |
That's great. I actually forked the repo and made changes to use it on the
day I commented asking for help.
…On Fri, Jun 21, 2024, 11:33 PM Darren ***@***.***> wrote:
Good news is that the changes by @nelsonauner
<https://github.com/nelsonauner> and @Vwake04 <https://github.com/Vwake04>
have been committed to master branch on commit 0deb98a
<0deb98a>
11 hours ago.
Just waiting on the update for
https://pypi.org/project/langchain-pinecone/#history now.
If I understand correctly, once the changes have been published we'll just
need to add a parameter async_req=False when using AWS Lambda to make it
work:
vector_store = PineconeVectorStore.from_documents(
split_documents,
index_name=index_name,
embedding=embeddings,
async_req=False
)
—
Reply to this email directly, view it on GitHub
<#22325 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGWDRLHR6C4Q2HTQWZ2GCRDZITWB3AVCNFSM6AAAAABIRE5N26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTG42TEOJWHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
PR merged: #22571 |
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
FileNotFoundError: [Errno 2] No such file or directory
when trying to usePineconeVectorStore.from_documents
in an AWS Lambda environment with the base imagepython:3.11-slim
.PineconeVectorStore
retriever without errors.FileNotFoundError
indicating an issue with multiprocessing in the slim Python 3.11 Docker image.System Info
Python Version: 3.11
Platform: Linux (AWS Lambda with python:3.11-slim base image)
Installed Packages:
The text was updated successfully, but these errors were encountered: