Skip to content

Commit

Permalink
Merge pull request #9 from aws-samples/may-updates
Browse files Browse the repository at this point in the history
updated prompt
  • Loading branch information
arik-porat committed May 8, 2024
2 parents e3d7e1d + 3c0d38a commit 7ae9487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ask-bedrock-with-rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def main():
opensearch_vector_search_client = create_opensearch_vector_search_client(index_name, opensearch_password, bedrock_embeddings_client, opensearch_endpoint)

# LangChain prompt template
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
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
{context}
Expand Down

0 comments on commit 7ae9487

Please sign in to comment.