There are 2 ways: easy one and hard one.
By editing pdl files, you can test different prompts. Read pdl document to learn about pdl.
You'll find pdl files in 2 places: your local ragit repo and ragit's git repo.
- If you have initialized a ragit repo, you'll find pdl files in
./.ragit/prompts. Modify the files and runrag buildorrag queryto see how LLM behaves differently. Make sure torag config --set dump_log trueso that you can see the conversations. - You can also find
prompts/in ragit's git repo. This is the default value for prompts. If your local tests on your new prompts are satisfiable, please commit the new prompts.
Modifying pdl files is very limited. You cannot add/remove values to tera's context.
TODO: write document
Once you have modified prompts, you have to test it. The best way is to see how it actually works with real queries. By enabling dump_log option, you can see how LLMs interact with your new prompt. You'll find the logs at .ragit/logs.