1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
You can use Bedrock KBs and still have full control of your Chatbot on your website: just use the KB API RetrieveAndGenerate or Retrieve from Python boto3:
See https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html or https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-agent-runtime/client/retrieve_and_generate.html
KB will do all the heavyweight lifting re. the RAG part for you.
To see how it works, have a look at my article: https://repost.aws/articles/AR-LV1HoR_S0m-qy89wXwHmw/the-leverage-of-llm-system-prompt-by-knowledge-bases-for-bedrock-in-rag-workflows
Best,
Didier
Relevant content
- asked 2 years ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 5 months ago

Thank you!
Is there a way to pass through all S3 Bucket files through the code? at the minute, it will only let me query one at a time (which isn't that useful for building a chatbot that will go on my website)