aws-samples / amazon-bedrock-workshop

This is a workshop designed for Amazon Bedrock a foundational model service.
https://catalog.us-east-1.prod.workshops.aws/workshops/a4bdb007-5600-4368-81c5-ff5b4154f518/en-US/20-intro
MIT No Attribution
1.27k stars 545 forks source link

modified ask_bedrock_llm_with_knowledge_base response #228

Open jaykrupa opened 3 months ago

jaykrupa commented 3 months ago

Issue #, if available: ask_bedrock_llm_with_knowledge_base function response was just the generated_text, but the citations cell below relies on the whole response 2024-04-11_12-28-20

Description of changes: Modified the response of the ask_bedrock_llm_with_knowledge_base function to return the whole response, and modified the cells below to parse out the right context.

2024-04-11_12-31-19

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

w601sxs commented 3 weeks ago

@mani-aiml can you check this