This repository was archived by the owner on Jan 6, 2025. It is now read-only.
RAG prompt - how and where #37
KhaoticMind
started this conversation in
General
Replies: 1 comment
-
|
In the RAG apps that I've worked on, we put the instructions in the system message, and then the sources itself in the final user message, after the user question. Here are the system prompts we've used: I have done evaluations with variations on those prompts, but none with particular better results. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi people,
One question that I have is where to put the RAG prompt, instructing the LLM to answer questions ONLY based on the sources.
Should it be a system prompt at the benining or should we pass it at the end of the chat history as a new message? Or really edit the last user message to insert the formated prompt?
If at the end can it be a new "system" prompt or it will only work with a "user" prompt?
Also, any pointers on good proven RAG prompts that will ground the LLM?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions