From b184dff1164209c0b6fc9576c54b0f1f90a99b00 Mon Sep 17 00:00:00 2001 From: hako884 Date: Tue, 18 Jul 2023 09:16:32 +0900 Subject: [PATCH] Fix: kendra_retriever_samples/kendra_chat_open_ai.py --- kendra_retriever_samples/kendra_chat_open_ai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kendra_retriever_samples/kendra_chat_open_ai.py b/kendra_retriever_samples/kendra_chat_open_ai.py index 9615ee9..9df2d31 100644 --- a/kendra_retriever_samples/kendra_chat_open_ai.py +++ b/kendra_retriever_samples/kendra_chat_open_ai.py @@ -13,7 +13,7 @@ def build_chain(): llm = OpenAI(batch_size=5, temperature=0, max_tokens=300) - retriever = AmazonKendraRetriever(index_id=kendra_index_id) + retriever = AmazonKendraRetriever(index_id=kendra_index_id, region_name=region) prompt_template = """ The following is a friendly conversation between a human and an AI.