SanskarModi commited on
Commit
7035f9f
·
1 Parent(s): 3dd609a

updated prompt for qa

Browse files
Files changed (1) hide show
  1. backend/app/core/prompts.py +8 -4
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
- - Use ONLY the provided context to answer.
8
- - If the answer is not present, say "I don't know based on the provided documents."
9
- - Be concise and precise.
10
- - Do NOT add external knowledge.
 
 
 
 
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 = """