Update src/qa.py
Browse files
src/qa.py
CHANGED
|
@@ -192,12 +192,14 @@ STRICT_PROMPT = (
|
|
| 192 |
"When the answer focuses on a single concept, definition, or explanation, write it as a clear and compact paragraph.\n"
|
| 193 |
"Keep the tone professional and concise. Do not invent facts outside the provided content.\n"
|
| 194 |
"Do not mention or refer to internal elements such as 'chunks', 'chunk numbers', 'passages', or 'sections of the document'.\n"
|
| 195 |
-
"If the answer cannot be found
|
|
|
|
| 196 |
"'I don't know based on the provided document.'\n\n"
|
| 197 |
"Context:\n{context}\n\nQuestion: {query}\nAnswer:"
|
| 198 |
)
|
| 199 |
|
| 200 |
|
|
|
|
| 201 |
REASONING_PROMPT = (
|
| 202 |
"You are an expert enterprise assistant capable of reasoning.\n"
|
| 203 |
"Think step by step and synthesize information even if scattered across chunks.\n"
|
|
|
|
| 192 |
"When the answer focuses on a single concept, definition, or explanation, write it as a clear and compact paragraph.\n"
|
| 193 |
"Keep the tone professional and concise. Do not invent facts outside the provided content.\n"
|
| 194 |
"Do not mention or refer to internal elements such as 'chunks', 'chunk numbers', 'passages', or 'sections of the document'.\n"
|
| 195 |
+
"If the answer cannot be found directly but there are partial clues, summarize those clues briefly starting with 'Based on the available information,'.\n"
|
| 196 |
+
"If nothing at all in the CONTEXT relates to the question, reply exactly:\n"
|
| 197 |
"'I don't know based on the provided document.'\n\n"
|
| 198 |
"Context:\n{context}\n\nQuestion: {query}\nAnswer:"
|
| 199 |
)
|
| 200 |
|
| 201 |
|
| 202 |
+
|
| 203 |
REASONING_PROMPT = (
|
| 204 |
"You are an expert enterprise assistant capable of reasoning.\n"
|
| 205 |
"Think step by step and synthesize information even if scattered across chunks.\n"
|