Skip to content

Commit 7ae9487

Browse files
authored
Merge pull request #9 from aws-samples/may-updates
updated prompt
2 parents e3d7e1d + 3c0d38a commit 7ae9487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ask-bedrock-with-rag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def main():
7979
opensearch_vector_search_client = create_opensearch_vector_search_client(index_name, opensearch_password, bedrock_embeddings_client, opensearch_endpoint)
8080

8181
# LangChain prompt template
82-
prompt = ChatPromptTemplate.from_template("""Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer. don't include harmful content
82+
prompt = ChatPromptTemplate.from_template("""If the context is not relevant, please answer the question by using your own knowledge about the topic. If you don't know the answer, just say that you don't know, don't try to make up an answer. don't include harmful content
8383
8484
{context}
8585

0 commit comments

Comments
 (0)