1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
No, you cannot: the prompt is under service control in RetrieveAndGenerate
To build your own prompt, you should use the Retrieve API to obtain the RAG data from the KB and then build your own prompt as you want it.
See:
- https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html
- https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-agent-runtime/client/retrieve.html
To see details of RetrieveAndGenerate vs Retrieve, have a look at 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 5 months ago
- asked 16 days ago
- asked 10 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago