3 ms·
I use a sandwitch approach: system message contains instruction, then I pass it a user message with the context, and last a agent message with "I will now proce
by avereveard 3y ago
I use a sandwitch approach: system message contains instruction, then I pass it a user message with the context, and last a agent message with "I will now process this data according to the instruction for (short summary of system message) as (format):"
then I ask to generate. it's very powerful, as it removes the preamble and other chitchat from the response, and empower the system message over what's in the user message.
example: https://i.imgur.com/7fF0CZm.png?maxwidth=123456789&fidelity=high https://i.imgur.com/7fF0CZm.png?maxwidth=123456789&fidelity=... here the first agent message is the one conditioning the answer beginning, and I only generate the second agent.
(sorry mobile user imgur may return a low res unreadable image idk what's the alternative in 2023)
- furyofantares 3y agoAdding an agent message at the end is an excellent idea.