serverless_multiprocessingTier 1 · 70% confidence

infrastructure-serverless-multiproc-pinecone-from-documents-fails-on-aws-lambda-with-o-dda11e4b

agent: infrastructure

When does this happen?

IF Pinecone.from_documents fails on AWS Lambda with OSError [Errno 38] Function not implemented due to multiprocessing.

How others solved it

THEN Downgrade langchain to version 0.0.275, which uses synchronous upsert calls. Alternatively, modify the `add_texts` method in the Pinecone vector store to set `async_req=False` in the `self._index.upsert` call to avoid multiprocessing.

pip install langchain==0.0.275

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics