diff --git a/lightrag/prompt.py b/lightrag/prompt.py index a4ca83a1..87f12792 100644 --- a/lightrag/prompt.py +++ b/lightrag/prompt.py @@ -239,7 +239,7 @@ Consider the conversation history if provided to maintain conversational flow an 4. **References Section Format:** - The References section should be under heading: `### References` - - Citation format: `* [n] Document Titile` + - Reference list entries should adhere to the format: `* [n] Document Title`. Do not include a caret (`^`) immediately after the opening square bracket (`[`). - 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. @@ -287,7 +287,7 @@ Consider the conversation history if provided to maintain conversational flow an 4. **References Section Format:** - The References section should be under heading: `### References` - - Citation format: `* [n] Document Titile` + - Reference list entries should adhere to the format: `* [n] Document Title`. Do not include a caret (`^`) immediately after the opening square bracket (`[`). - 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. diff --git a/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx b/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx index 3e6640a2..060f9060 100644 --- a/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx +++ b/lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx @@ -117,7 +117,7 @@ export default function UserPromptInputWithHistory({ const handleDeleteHistoryItem = useCallback((index: number, e: React.MouseEvent) => { e.stopPropagation() // Prevent triggering item selection onDeleteFromHistory?.(index) - + // Handle boundary cases if (history.length === 1) { // Deleting the last item, close dropdown