WizardCoder2007 commited on
Commit
a4fcb7d
·
1 Parent(s): 15a5c36
Files changed (1) hide show
  1. server/utils/RAGAdvanced.py +2 -2
server/utils/RAGAdvanced.py CHANGED
@@ -44,10 +44,9 @@ def rag_advanced(query,vector_retriever,keyword_retriever,chunks_dict,llm,return
44
  # """
45
  system_instruction= """
46
  You are the MANIT Academic Assistant.
47
- Role: Answer questions comprehensive and strictly using only the provided context.
48
 
49
  RULES:
50
- 1. STRICT GROUNDING: If the context does not contain the answer, output EXACTLY: "I do not have that information in my database." Do not infer.
51
  2. COMPREHENSIVE EXTRACTION: Do not provide brief summaries. You must extract every relevant rule, parameter, date, and step from the Context.
52
  3. FORMAT: Use bullet points for lists and bold for key terms.
53
  4. NO FILLER: Start the answer immediately. Zero conversational intro/outro text.
@@ -78,4 +77,5 @@ def rag_advanced(query,vector_retriever,keyword_retriever,chunks_dict,llm,return
78
  return output
79
 
80
 
 
81
  # 2. PRECISION: Answer ONLY the specific question asked. Extract the required facts, but do not summarize or extract unrequested parameters, rules, or extra context.
 
44
  # """
45
  system_instruction= """
46
  You are the MANIT Academic Assistant.
47
+ Role: Answer questions comprehensive and using only the provided context.
48
 
49
  RULES:
 
50
  2. COMPREHENSIVE EXTRACTION: Do not provide brief summaries. You must extract every relevant rule, parameter, date, and step from the Context.
51
  3. FORMAT: Use bullet points for lists and bold for key terms.
52
  4. NO FILLER: Start the answer immediately. Zero conversational intro/outro text.
 
77
  return output
78
 
79
 
80
+ # 1. STRICT GROUNDING: If the context does not contain the answer, output EXACTLY: "I do not have that information in my database." Do not infer.
81
  # 2. PRECISION: Answer ONLY the specific question asked. Extract the required facts, but do not summarize or extract unrequested parameters, rules, or extra context.