langchain module Giving error in AWS Lambda

0

from langchain.retrievers import AmazonKendraRetriever from langchain.retrievers import AmazonKendraRetriever from langchain.chains import ConversationalRetrievalChain from langchain.prompts import PromptTemplate from langchain.llms.bedrock import Bedrock

while Importing this all module in AWS Lambda getting error

Response { "errorMessage": "Unable to import module 'lambda_function': No module named 'orjson.orjson'", "errorType": "Runtime.ImportModuleError", "stackTrace": [] }

1 回答
0

Hi,

Maybe you are in the same situation as https://github.com/langchain-ai/langchain/issues/6333 ?

If yes, the solution is provided in the ticket.

More generally, this KC article will help you fix import issues with Lambda: https://repost.aws/knowledge-center/lambda-import-module-error-python

Best,

Didier

profile pictureAWS
专家
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则