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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ