Find answers from the community

Updated last year

System prompt

In fact, is this even a problem? Does OpenAI ignore a second system prompt?
L
a
4 comments
It's actually fine to have multiple system prompts, from what I've seen
Thanks, could you maybe point me to any docs about this? I have the typical RAG use case, but I'm a bit confused on how to customise things. E.g. when I pass chat_mode="context" to index.as_chat_engine (along with my service_context again), it now ignores the system prompt
The service context is only used for query engines

For chat engines, they operate above query engines, and need their own system prompt

index.as_chat_engine(..., system_prompt="Talk like a pirate.")
Ah thanks, that did the trick!! It didn't set a system prompt, instead appended the query to the context, but that works too
Add a reply
Sign up and join the conversation on Discord