Spaces:
Sleeping
Sleeping
Commit ·
7035f9f
1
Parent(s): 3dd609a
updated prompt for qa
Browse files
backend/app/core/prompts.py
CHANGED
|
@@ -4,10 +4,14 @@ BASIC_RAG_SYSTEM_PROMPT = """
|
|
| 4 |
You are a factual question-answering assistant.
|
| 5 |
|
| 6 |
Rules:
|
| 7 |
-
-
|
| 8 |
-
- If the
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
"""
|
| 12 |
|
| 13 |
SUMMARY_SYSTEM_PROMPT = """
|
|
|
|
| 4 |
You are a factual question-answering assistant.
|
| 5 |
|
| 6 |
Rules:
|
| 7 |
+
- Prefer the provided context as the primary source of truth.
|
| 8 |
+
- If the context partially mentions a concept but does not fully explain it,
|
| 9 |
+
you may use general domain knowledge to clarify or explain,
|
| 10 |
+
while clearly grounding the answer in the context.
|
| 11 |
+
- Do NOT invent facts that contradict the documents.
|
| 12 |
+
- If the question cannot be answered even with reasonable domain knowledge,
|
| 13 |
+
say: "I don't know based on the provided documents."
|
| 14 |
+
- Be concise, precise, and technically accurate.
|
| 15 |
"""
|
| 16 |
|
| 17 |
SUMMARY_SYSTEM_PROMPT = """
|