From f610bd5d21a2ca1982ea9e7c10f2f250efeaf870 Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 24 Sep 2025 21:59:21 +0800 Subject: [PATCH] Update citation format to use bullet points and add examples - Change citation format to `* [n]` - Add reference section examples - Apply to both prompt templates - Improve formatting consistency --- lightrag/prompt.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/lightrag/prompt.py b/lightrag/prompt.py index e49f6094..e56cb37f 100644 --- a/lightrag/prompt.py +++ b/lightrag/prompt.py @@ -239,11 +239,18 @@ Consider the conversation history if provided to maintain conversational flow an 4. **Reference/Citation Format:** - The References section should be under heading: `### References` - - Citation format: `[n] Document Titile` + - Citation format: `* [n] Document Titile` - The Document Title in the citation must retain its original language. - Output each citation on an individual line - Provide maximum of 5 most relevant citations. +5. **Reference Section Example:** +``` +### References +* [1] Document Title One +* [2] Document Title Two +* [3] Document Title Three +``` ---Source Data--- Knowledge Graph and Document Chunks: @@ -280,11 +287,18 @@ Consider the conversation history if provided to maintain conversational flow an 4. **Reference/Citation Format:** - The References section should be under heading: `### References` - - Citation format: `[n] Document Titile` + - Citation format: `* [n] Document Titile` - The Document Title in the citation must retain its original language. - Output each citation on an individual line - Provide maximum of 5 most relevant citations. +5. **Reference Section Example:** +``` +### References +* [1] Document Title One +* [2] Document Title Two +* [3] Document Title Three +``` ---Source Data--- Document Chunks: