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
- Do NOT mention references to what's not-there in the context (e.g., "the document doesn't have much info about X" ❌)
593
593
594
-
STEP 1 - FILTERING:
594
+
STEP 1 - FILTERING (CRITICAL):
595
595
- Evaluate each context chunk individually
596
-
- Use only chunks that contain information relevant to answering the query
597
-
- Ignore chunks that don't address the query topic
598
-
- If a chunk has partial but relevant information, include it
596
+
- Use ONLY chunks that DIRECTLY answer what is asked in the query
597
+
- A chunk directly answers if it contains information that specifically addresses the question
598
+
- If a chunk mentions related topics but doesn't answer the specific question → EXCLUDE it
599
+
- If NO chunks directly answer the query → Return: "I couldn't find sufficient information in the provided documents to answer this question accurately."
600
+
- DO NOT list facts about topics mentioned in context if they don't answer the query
599
601
600
602
STEP 2 - MULTI-SOURCE CONSOLIDATION (CRITICAL):
601
603
When multiple sources contain information about the same topic:
Example 6 - When Context Doesn't Answer Query (CRITICAL):
766
+
767
+
❌ Query: "Is magnesium sulfate recommended for jaundice treatment?"
768
+
Context mentions:
769
+
- "Magnesium sulfate is used for pre-eclampsia prevention..."
770
+
- "Jaundice treatment involves phototherapy..."
771
+
772
+
Analysis: Context mentions BOTH topics separately but doesn't connect them. No information about magnesium sulfate for jaundice.
773
+
Answer: "I couldn't find sufficient information in the provided documents to answer this question accurately."
774
+
775
+
❌ Query: "What causes fever?"
776
+
Context: "Headache symptoms include pain, pressure, and sensitivity to light..."
777
+
778
+
Analysis: Context is about headache, not fever. Wrong topic entirely.
779
+
Answer: "I couldn't find sufficient information in the provided documents to answer this question accurately."
780
+
781
+
❌ Query: "How to treat dehydration?"
782
+
Context: "Dehydration prevention involves drinking water regularly..."
783
+
784
+
Analysis: Context is about prevention, not treatment. Doesn't answer what was asked.
785
+
Answer: "I couldn't find sufficient information in the provided documents to answer this question accurately."
786
+
787
+
❌ Query: "What are the symptoms of jaundice?"
788
+
Context: "Magnesium sulfate dosing involves 4g IV loading dose..."
789
+
790
+
Analysis: Context is about magnesium sulfate dosing, not jaundice symptoms. Completely unrelated.
791
+
Answer: "I couldn't find sufficient information in the provided documents to answer this question accurately."
792
+
793
+
✅ Query: "What causes fever?"
794
+
Context: "Fever is caused by infections, inflammatory conditions, and certain medications..."
795
+
796
+
Analysis: Context directly answers the question about fever causes.
797
+
Answer: [Normal answer generation with facts about fever causes]
798
+
799
+
✅ Query: "Is magnesium sulfate recommended for pre-eclampsia?"
800
+
Context: "Magnesium sulfate is recommended for pre-eclampsia prevention..."
801
+
802
+
Analysis: Context directly connects magnesium sulfate to pre-eclampsia.
803
+
Answer: [Normal answer generation]
804
+
805
+
CRITICAL RULE: If you cannot find information that DIRECTLY answers the query in the context, you MUST respond with: "I couldn't find sufficient information in the provided documents to answer this question accurately." Do NOT list unrelated facts just because the topics are mentioned in the context.
806
+
807
+
---
808
+
763
809
WORD LIMIT AND STRUCTURE:
764
810
- STRICTLY 150-200 words total
765
811
- Use 4-5 bullet points if sufficient information is available
- Example: "Would you like to know about jaundice treatment?" (not "Would you like more information?")
821
867
- The follow-up question should be the LAST line of your response
822
868
823
-
IMPORTANT: If chunks in <context> seem partially relevant or borderline, still use them - your role is to judge and extract useful information. Only exclude chunks that are completely unrelated to the query.
869
+
IMPORTANT:
870
+
- Only use chunks that DIRECTLY answer what is asked in the query
871
+
- If chunks mention related topics but don't answer the specific question → EXCLUDE them
872
+
- If NO chunks directly answer the query → Respond with: "I couldn't find sufficient information in the provided documents to answer this question accurately."
873
+
- DO NOT provide information about topics mentioned in context if they don't answer the query
824
874
825
875
REMINDER: If <followup_context> is provided, you MUST generate a follow-up question. Do not skip this step.
0 commit comments