Spaces:
Build error
Build error
fix: don't include entities as not needed
Browse files- planning_ai/graph.py +4 -3
planning_ai/graph.py
CHANGED
@@ -14,14 +14,15 @@ from planning_ai.states import OverallState
|
|
14 |
|
15 |
def create_graph():
|
16 |
graph = StateGraph(OverallState)
|
17 |
-
graph.add_node("add_entities", add_entities)
|
18 |
graph.add_node("generate_summary", generate_summary)
|
19 |
graph.add_node("check_hallucination", check_hallucination)
|
20 |
graph.add_node("fix_hallucination", fix_hallucination)
|
21 |
graph.add_node("generate_final_report", generate_final_report)
|
22 |
|
23 |
-
graph.add_edge(START, "add_entities")
|
24 |
-
graph.add_conditional_edges(
|
|
|
25 |
graph.add_conditional_edges("generate_summary", map_check, ["check_hallucination"])
|
26 |
graph.add_conditional_edges("check_hallucination", map_fix, ["fix_hallucination"])
|
27 |
graph.add_conditional_edges("fix_hallucination", map_check, ["check_hallucination"])
|
|
|
14 |
|
15 |
def create_graph():
|
16 |
graph = StateGraph(OverallState)
|
17 |
+
# graph.add_node("add_entities", add_entities)
|
18 |
graph.add_node("generate_summary", generate_summary)
|
19 |
graph.add_node("check_hallucination", check_hallucination)
|
20 |
graph.add_node("fix_hallucination", fix_hallucination)
|
21 |
graph.add_node("generate_final_report", generate_final_report)
|
22 |
|
23 |
+
# graph.add_edge(START, "add_entities")
|
24 |
+
graph.add_conditional_edges(START, map_documents, ["generate_summary"])
|
25 |
+
# graph.add_conditional_edges("add_entities", map_documents, ["generate_summary"])
|
26 |
graph.add_conditional_edges("generate_summary", map_check, ["check_hallucination"])
|
27 |
graph.add_conditional_edges("check_hallucination", map_fix, ["fix_hallucination"])
|
28 |
graph.add_conditional_edges("fix_hallucination", map_check, ["check_hallucination"])
|