We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fec08e commit 2d1795aCopy full SHA for 2d1795a
ask-bedrock-with-rag.py
@@ -96,12 +96,11 @@ def main():
96
response = retrieval_chain.invoke({"input": question})
97
98
print("")
99
- logger.info("These are the similar documents from OpenSearch based on the provided query")
+ logger.info("These are the similar documents from OpenSearch based on the provided query:")
100
source_documents = response.get('context')
101
for d in source_documents:
102
103
- # logger.info(f"With the following similar content from OpenSearch:\n{d.page_content}\n")
104
- logger.info(f"Text: {d.metadata['text']}")
+ logger.info(f"Text: {d.page_content}")
105
106
107
logger.info(f"The answer from Bedrock {bedrock_model_id} is: {response.get('answer')}")
0 commit comments