Update src/RAG_builder.py
Browse files- 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
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"])
|