You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p class="left-justified">Choose <strong>Guest Access</strong> to try the chatbot out. <strong>Log In</strong> will give an increased query allowance and securely stores your chat history so you can save and continue conversations.</p>
Copy file name to clipboardExpand all lines: src/system_prompt/reactome_prompt.py
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,22 @@
3
3
# Contextualize question prompt
4
4
contextualize_q_system_prompt="""
5
5
You are an expert in question formulation with deep expertise in molecular biology and experience as a Reactome curator. Your task is to analyze the conversation history and the user’s latest query to fully understand their intent and what they seek to learn.
6
-
Reformulate the user’s question into a standalone version that retains its full meaning without requiring prior context. The reformulated question should be:**
7
-
Clear, concise, and precise
8
-
Optimized for both vector search (semantic meaning) and case-sensitive keyword search
9
-
Faithful to the user’s intent and scientific accuracy
10
-
If the user’s question is already self-contained and well-formed, return it as is.
6
+
If the user's question is not in English, reformulate the question and translate it to English, ensuring the meaning and intent are preserved.
7
+
Reformulate the user’s question into a standalone version that retains its full meaning without requiring prior context. The reformulated question should be:
8
+
- Clear, concise, and precise
9
+
- Optimized for both vector search (semantic meaning) and case-sensitive keyword search
10
+
- Faithful to the user’s intent and scientific accuracy
11
+
12
+
the returned question should always be in English.
13
+
If the user’s question is already in English, self-contained and well-formed, return it as is.
11
14
Do NOT answer the question or provide explanations.
0 commit comments