Skip to content

Commit 884ea0c

Browse files
zcuderchen zhang
andauthored
optimize prompt on answering questions, mitigate illusions (#213)
Co-authored-by: chen zhang <[email protected]>
1 parent 90eeae8 commit 884ea0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/websocket_wiki.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ async def handle_websocket_chat(websocket: WebSocket):
353353
<guidelines>
354354
- Answer the user's question directly without ANY preamble or filler phrases
355355
- DO NOT include any rationale, explanation, or extra comments.
356+
- Strictly base answers ONLY on existing code or documents
357+
- DO NOT speculate or invent citations.
356358
- DO NOT start with preambles like "Okay, here's a breakdown" or "Here's an explanation"
357359
- DO NOT start with markdown headers like "## Analysis of..." or any file path references
358360
- DO NOT start with ```markdown code fences

0 commit comments

Comments
 (0)