Can we send system prompt in Retrieve and generate

0

Is it possible to send system prompt in Retrieve and generate method

1 Answer
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:

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

profile pictureAWS
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
profile picture
EXPERT
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions