Skip to content

Commit ef3a455

Browse files
committed
updated prompt
1 parent 3fd7a33 commit ef3a455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ask-bedrock-with-rag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
def parse_args():
2121
parser = argparse.ArgumentParser()
22-
parser.add_argument("--ask", type=str, default="What is the meaning of <3?")
22+
parser.add_argument("--ask", type=str, default="hat is the meaning of <3?")
2323
parser.add_argument("--index", type=str, default="rag")
2424
parser.add_argument("--region", type=str, default="us-east-1")
2525
parser.add_argument("--bedrock-model-id", type=str, default="anthropic.claude-3-sonnet-20240229-v1:0")
@@ -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)