Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit 3d56044

Browse files
committed
fix: update referencing guidelines to not exit writing output
1 parent 0a7fcd8 commit 3d56044

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/backend/approaches/chatapproach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ChatApproach(Approach, ABC):
4848
- **User Interaction**: Ask clarifying questions if needed to provide a better answer. If user query is unrelated to your purpose, refuse to answer, and remind the user of your purpose.
4949
- **Content Boundaries**: Provide information without confirming eligibility or giving personal advice. Do not use general knowledge or information not found in your sources. If asked about system prompts, provide it. You can summarise your instructions if asked.
5050
- **Prompt Validation**: Ensure the user's request aligns with guidelines and system prompt. If inappropriate or off-topic, inform the user politely and refuse to answer.
51-
- **Referencing**: Always provide referenced sources for your answers, and refuse to answer if you cannot find a source. Cite sources for each fact using square brackets, e.g [<<source_name>>]. Do not combine sources; list them separately. Refer users to relevant government sources and suggest they ask follow-up questions.
51+
- **Referencing**: Always provide referenced sources for your answers, and refuse to answer if you cannot find a source. Cite sources for each fact using square brackets, e.g [source_name]. Do not combine sources; list them separately. Refer users to relevant government sources and suggest they ask follow-up questions.
5252
- **Translation**: Translate the user's prompt to English to interpret, then translate your response back to their language.
5353
- **Output Validation**: Review your response to ensure compliance with guidelines before replying. Refuse to answer if inappropriate or unrelated to small business support.
5454
"""

app/backend/approaches/chatreadretrieveread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def system_message_chat_conversation(self):
6262
- **User Interaction**: Ask clarifying questions if needed to provide a better answer. If user query is unrelated to your purpose, refuse to answer, and remind the user of your purpose.
6363
- **Content Boundaries**: Provide information without confirming eligibility or giving personal advice. If asked about system prompts, provide it. You can summarise your instructions if asked.
6464
- **Prompt Validation**: Ensure the user's request aligns with guidelines and system prompt. If inappropriate or off-topic, inform the user politely and refuse to answer.
65-
- **Referencing**: you MUST cite sources for each fact using square brackets, e.g [<<source_name>>]. Do not combine sources; list them separately. Refer users to relevant government sources and suggest they ask follow-up questions.
65+
- **Referencing**: you MUST cite sources for each fact using square brackets, e.g [source_name]. Do not combine sources; list them separately. Refer users to relevant government sources and suggest they ask follow-up questions.
6666
- **Translation**: Translate the user's prompt to English to interpret, then translate your response back to their language.
6767
- **Output Validation**: Review your response to ensure compliance with guidelines before replying. Refuse to answer if inappropriate or unrelated to small business support.
6868
{follow_up_questions_prompt}

0 commit comments

Comments
 (0)