Skip to content

Can we send system prompt in Retrieve and generate

0

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

2 Answers
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

EXPERT
answered a year ago
EXPERT
reviewed a year ago
EXPERT
reviewed a year ago
0

Hello, that said, you can customize the prompts generated by the service for Retrieve and Generate using this promptTemplate parametter for the generation part and this promptTemplate for the orchestration part.

AWS
answered a year 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.