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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠