Dinesh310 commited on
Commit
c0f564e
·
verified ·
1 Parent(s): 82551b1

Update src/RAG_builder.py

Browse files
Files changed (1) hide show
  1. src/RAG_builder.py +9 -5
src/RAG_builder.py CHANGED
@@ -80,11 +80,15 @@ class ProjectRAGGraph:
80
  def generate(self, state: GraphState):
81
  print("--- GENERATING ---")
82
  prompt = ChatPromptTemplate.from_template("""
83
- You are a professional Project Analyst.
84
- Context: {context}
85
- Question: {question}
86
- Answer strictly using the context.
87
- If unknown, say you don't know.
 
 
 
 
88
  """)
89
 
90
  formatted_context = "\n\n".join(d.page_content for d in state["context"])
 
80
  def generate(self, state: GraphState):
81
  print("--- GENERATING ---")
82
  prompt = ChatPromptTemplate.from_template("""
83
+ You are an expert Project Analyst.
84
+ Answer ONLY using the provided context from multiple project reports.
85
+ If the answer is not explicitly present, respond with "I don't know."
86
+ When comparing projects, clearly separate insights per project.
87
+ Context:
88
+ {context}
89
+
90
+ Question:
91
+ {question}
92
  """)
93
 
94
  formatted_context = "\n\n".join(d.page_content for d in state["context"])