From 89021cde90287cc266ff2894b38961012578c9e6 Mon Sep 17 00:00:00 2001 From: Yuhong Sun Date: Tue, 4 Feb 2025 14:17:23 -0800 Subject: [PATCH] Citation Prompt --- backend/onyx/prompts/chat_prompts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/onyx/prompts/chat_prompts.py b/backend/onyx/prompts/chat_prompts.py index 427a6957b..7ee3a8662 100644 --- a/backend/onyx/prompts/chat_prompts.py +++ b/backend/onyx/prompts/chat_prompts.py @@ -3,8 +3,9 @@ from onyx.prompts.constants import QUESTION_PAT REQUIRE_CITATION_STATEMENT = """ Cite relevant statements INLINE using the format [1], [2], [3], etc. to reference the document number. \ -DO NOT provide any links following the citations. To cite multiple documents, use [1], [2] format \ -instead of [1, 2]. Try to cite inline as opposed to leaving all citations until the very end of the response. +DO NOT provide any links following the citations. In other words, do not cite like [1](https://example.com). \ +To cite multiple documents, use [1], [2] format instead of [1, 2]. Try to cite inline as opposed to \ +leaving all citations until the very end of the response. """.rstrip() NO_CITATION_STATEMENT = """