Spaces:
Sleeping
Sleeping
follow-up question
Browse files- utils/generator.py +6 -1
utils/generator.py
CHANGED
|
@@ -203,9 +203,14 @@ CRITICAL: Use ONLY [number] format. Never include page numbers, years, document
|
|
| 203 |
|
| 204 |
DO NOT add a "References" section, bibliography, or sources list at the end.
|
| 205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
- If the context is insufficient, say "I don't have sufficient information to answer the question. Please try rephrasing your query."
|
| 207 |
"""
|
| 208 |
-
|
| 209 |
user_content = f"### CONTEXT\n{context}\n\n### USER QUESTION\n{question}"
|
| 210 |
return [SystemMessage(content=system_content), HumanMessage(content=user_content)]
|
| 211 |
|
|
|
|
| 203 |
|
| 204 |
DO NOT add a "References" section, bibliography, or sources list at the end.
|
| 205 |
|
| 206 |
+
FOLLOW-UP QUESTIONS:
|
| 207 |
+
- If the context contains related information beyond what you included in your answer, suggest 1 relevant follow-up question the user might want to explore.
|
| 208 |
+
- Base the question on related information you found in the context or natural extensions of the user's query.
|
| 209 |
+
- Format the follow-up question clearly at the end of your response under "You might also want to know:"
|
| 210 |
+
- Keep the follow-up question concise and directly related to the audit reports.
|
| 211 |
+
|
| 212 |
- If the context is insufficient, say "I don't have sufficient information to answer the question. Please try rephrasing your query."
|
| 213 |
"""
|
|
|
|
| 214 |
user_content = f"### CONTEXT\n{context}\n\n### USER QUESTION\n{question}"
|
| 215 |
return [SystemMessage(content=system_content), HumanMessage(content=user_content)]
|
| 216 |
|