Merge pull request #213 from thiswillbeyourgithub/fix_outdated_rag_template

fix: outdated rag template
This commit is contained in:
Timothy Jaeryang Baek 2024-09-23 23:03:17 +02:00 committed by GitHub
commit 74d150a89f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -567,19 +567,24 @@ Available Tools: {{TOOLS}}\nReturn an empty string if no tools match the query.
- Default:
```
Use the following context as your learned knowledge, inside <context></context> XML tags.
You are given a user query, some textual context and rules, all inside xml tags. You have to answer the query based on the context while respecting the rules.
<context>
[context]
[context]
</context>
When answer to user:
- If you don't know, just say that you don't know.
- If you don't know when you are not sure, ask for clarification.
Avoid mentioning that you obtained the information from the context.
And answer according to the language of the user's question.
<rules>
- If you don't know, just say so.
- If you are not sure, ask for clarification.
- Answer in the same language as the user query.
- If the context appears unreadable or of poor quality, tell the user then answer as best as you can.
- If the answer is not in the context but you think you know the answer, explain that to the user then answer with your own knowledge.
- Answer directly and without using xml tags.
</rules>
Given the context information, answer the query.
Query: [query]
<user_query>
[query]
</user_query>
```
- Description: Template to use when injecting RAG documents into chat completion