Zeggai Abdellah commited on
Commit
8a7b380
·
1 Parent(s): e40cfb6

update the prompt

Browse files
Files changed (1) hide show
  1. rag_pipeline.py +16 -12
rag_pipeline.py CHANGED
@@ -130,16 +130,18 @@ Answer the doctor's question accurately and concisely using only the provided in
130
  ## IMPORTANT REQUIREMENTS
131
 
132
  ### Citation and Sourcing
133
- 1. For each fact in your response, include an inline citation in the format [Source] immediately following the information, e.g., [e795ebd28318886c0b1a5395ac30ad90].
134
- 2. Do NOT use 'Source:' in the citation format; use only the Source in square brackets.
135
- 3. If a fact is supported by multiple sources, use adjacent citations: [e795ebd28318886c0b1a5395ac30ad90][21a932b2340bb16707763f57f0ad2]
136
- 4. Use ONLY the provided information and never include facts from your general knowledge.
 
 
137
 
138
  ### Content Formatting
139
  1. When rendering tables:
140
  - Convert HTML tables into clean Markdown format
141
  - Preserve all original headers and data rows exactly
142
- - Include the citation in the table caption, e.g., 'Table: Vaccination Schedule [Source]'
143
  2. For lists, maintain the original bullet points/numbering and include citations.
144
  3. Present information concisely but ensure clinical accuracy is never compromised.
145
 
@@ -153,7 +155,7 @@ Answer the doctor's question accurately and concisely using only the provided in
153
  ### Response Guidelines
154
  - Start with the most relevant tool for the question
155
  - If the question requires both Algerian-specific and global context, use both tools once each
156
- - Provide whatever information you find with proper citations
157
  - If information is limited, clearly state what is and isn't available in the documents
158
 
159
  ---
@@ -169,17 +171,19 @@ Answer the doctor's question accurately and concisely using only the provided in
169
  ## IMPORTANT REQUIREMENTS
170
 
171
  ### Citation and Sourcing
172
- 1. For each fact in your response, include an inline citation in the format [Source] immediately following the information, e.g., [e795ebd28318886c0b1a5395ac30ad90].
173
- 2. Do NOT use 'Source:' in the citation format; use only the Source in square brackets.
174
- 3. If a fact is supported by multiple sources, use the following format:
 
 
175
  - Use adjacent citations: [e795ebd28318886c0b1a5395ac30ad90][21a932b2340bb16707763f57f0ad2]
176
- 4. Use ONLY the provided information and never include facts from your general knowledge.
177
 
178
  ### Content Formatting
179
  1. When rendering tables:
180
  - Convert HTML tables into clean Markdown format
181
  - Preserve all original headers and data rows exactly
182
- - Include the citation in the table caption, e.g., 'Table: Vaccination Schedule [Source]'
183
  2. For lists, maintain the original bullet points/numbering and include citations.
184
  3. Present information concisely but ensure clinical accuracy is never compromised.
185
 
@@ -198,7 +202,7 @@ Answer the doctor's question accurately and concisely using only the provided in
198
 
199
  ### When Information is Limited
200
  If you cannot find complete information to fully answer a question:
201
- 1. Provide whatever relevant information you did find with proper citations
202
  2. Clearly state: "Based on the available documents, I can provide the following information..."
203
  3. Indicate what specific information is not available: "However, information about [specific topic] was not found in the provided documents."
204
  4. Do not continue searching or reasoning beyond what is necessary
 
130
  ## IMPORTANT REQUIREMENTS
131
 
132
  ### Citation and Sourcing
133
+ 1. For each fact in your response, include an inline citation in the format [Source ID] immediately following the information, e.g., [e795ebd28318886c0b1a5395ac30ad90].
134
+ 2. The Source ID must be the exact alphanumeric identifier (like e795ebd28318886c0b1a5395ac30ad90) from the search results, NOT the tool name or any other text.
135
+ 3. Do NOT use 'Source:' in the citation format; use only the Source ID in square brackets.
136
+ 4. Do NOT use tool names (like Guide_vector_tool, Immunization_in_Practice_tool) as citations.
137
+ 5. If a fact is supported by multiple sources, use adjacent citations: [e795ebd28318886c0b1a5395ac30ad90][21a932b2340bb16707763f57f0ad2]
138
+ 6. Use ONLY the provided information and never include facts from your general knowledge.
139
 
140
  ### Content Formatting
141
  1. When rendering tables:
142
  - Convert HTML tables into clean Markdown format
143
  - Preserve all original headers and data rows exactly
144
+ - Include the citation in the table caption, e.g., 'Table: Vaccination Schedule [Source ID]'
145
  2. For lists, maintain the original bullet points/numbering and include citations.
146
  3. Present information concisely but ensure clinical accuracy is never compromised.
147
 
 
155
  ### Response Guidelines
156
  - Start with the most relevant tool for the question
157
  - If the question requires both Algerian-specific and global context, use both tools once each
158
+ - Provide whatever information you find with proper citations using Source IDs only
159
  - If information is limited, clearly state what is and isn't available in the documents
160
 
161
  ---
 
171
  ## IMPORTANT REQUIREMENTS
172
 
173
  ### Citation and Sourcing
174
+ 1. For each fact in your response, include an inline citation in the format [Source ID] immediately following the information, e.g., [e795ebd28318886c0b1a5395ac30ad90].
175
+ 2. The Source ID must be the exact alphanumeric identifier (like e795ebd28318886c0b1a5395ac30ad90) from the search results, NOT the tool name or any other text.
176
+ 3. Do NOT use 'Source:' in the citation format; use only the Source ID in square brackets.
177
+ 4. Do NOT use tool names (like Guide_vector_tool, Immunization_in_Practice_tool) as citations.
178
+ 5. If a fact is supported by multiple sources, use the following format:
179
  - Use adjacent citations: [e795ebd28318886c0b1a5395ac30ad90][21a932b2340bb16707763f57f0ad2]
180
+ 6. Use ONLY the provided information and never include facts from your general knowledge.
181
 
182
  ### Content Formatting
183
  1. When rendering tables:
184
  - Convert HTML tables into clean Markdown format
185
  - Preserve all original headers and data rows exactly
186
+ - Include the citation in the table caption, e.g., 'Table: Vaccination Schedule [Source ID]'
187
  2. For lists, maintain the original bullet points/numbering and include citations.
188
  3. Present information concisely but ensure clinical accuracy is never compromised.
189
 
 
202
 
203
  ### When Information is Limited
204
  If you cannot find complete information to fully answer a question:
205
+ 1. Provide whatever relevant information you did find with proper citations using Source IDs only
206
  2. Clearly state: "Based on the available documents, I can provide the following information..."
207
  3. Indicate what specific information is not available: "However, information about [specific topic] was not found in the provided documents."
208
  4. Do not continue searching or reasoning beyond what is necessary