Skip to content

Commit cef710d

Browse files
authored
Merge pull request #922 from helixml/feature/improved-rag-output
encourage the use of structured responses/numbered lists
2 parents 5c2258a + d2e9759 commit cef710d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/pkg/prompts/templates/knowledge.tmpl

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ You will provide references in two ways:
4444

4545
IMPORTANT: When referencing documents, always use EXACTLY the document_id values provided above. DO NOT extract or use page IDs from URLs within the content. Always provide references in the body of your answer in the format '[DOC_ID:DocumentID]'. For example, "The answer is 42 [DOC_ID:f6962c8007]." NOT "[DOC_ID:123456]" where 123456 might be a page ID in a URL.
4646

47-
Always provide references in the body of your answer!
47+
Always provide references in the body of your answer, but not too many. Don't repeat the same reference many times.
48+
Users like it if the format of the answer is structured, for example using a numbered list rather than just a big blob of text. Where there are many concepts to communicate, consider using a numbered list.
4849

4950
After completing your answer, without any visible header, write the excerpts with important quotes from each referenced document.
5051

@@ -78,4 +79,4 @@ FINAL CHECK:
7879
{{- end }}
7980

8081
Here is the question from the user:
81-
{{.Question}}
82+
{{.Question}}

0 commit comments

Comments
 (0)