Shubham170793 commited on
Commit
1c8a1ff
·
verified ·
1 Parent(s): f4b1ade

Update src/qa.py

Browse files
Files changed (1) hide show
  1. src/qa.py +1 -2
src/qa.py CHANGED
@@ -184,14 +184,13 @@ REASONING_PROMPT = (
184
  "Think step by step and synthesize information even if scattered across chunks.\n"
185
  "Base your answer primarily on the CONTEXT, but if multiple partial clues exist, combine them logically.\n"
186
  "You may fill reasonable gaps with general knowledge to form a complete answer.\n"
187
- "When the document discusses multiple causes, challenges, steps, or key points, "
188
- "present the answer in short, well-structured bullet points.\n"
189
  "If absolutely nothing in the document relates, say exactly:\n"
190
  "'I don't know based on the provided document.'\n\n"
191
  "Context:\n{context}\n\nQuestion: {query}\nLet's reason step-by-step:\nAnswer:"
192
  )
193
 
194
 
 
195
  # ==========================================================
196
  # 7️⃣ Retrieval — FAISS + Bullet-Aware Re-rank + Neighbor Fill
197
  # ==========================================================
 
184
  "Think step by step and synthesize information even if scattered across chunks.\n"
185
  "Base your answer primarily on the CONTEXT, but if multiple partial clues exist, combine them logically.\n"
186
  "You may fill reasonable gaps with general knowledge to form a complete answer.\n"
 
 
187
  "If absolutely nothing in the document relates, say exactly:\n"
188
  "'I don't know based on the provided document.'\n\n"
189
  "Context:\n{context}\n\nQuestion: {query}\nLet's reason step-by-step:\nAnswer:"
190
  )
191
 
192
 
193
+
194
  # ==========================================================
195
  # 7️⃣ Retrieval — FAISS + Bullet-Aware Re-rank + Neighbor Fill
196
  # ==========================================================