Spaces:
Paused
Paused
Hemang Thakur
commited on
Commit
·
e948f71
1
Parent(s):
014703a
made changes to graph rag file and some ui elements
Browse files- src/rag/graph_rag.py +0 -10
src/rag/graph_rag.py
CHANGED
@@ -804,16 +804,6 @@ class GraphRAG:
|
|
804 |
if no_child_done:
|
805 |
await self.emit_event("sub_query_failed", {"sub_query": sub_query})
|
806 |
|
807 |
-
for idx, (sub_query, future) in enumerate(futures.items(), 1):
|
808 |
-
if future.done() and future.result().strip():
|
809 |
-
print(f"Sub-query {idx} processed successfully")
|
810 |
-
else:
|
811 |
-
child_futures = all_child_futures.get(sub_query)
|
812 |
-
if any(cf.done() and cf.result().strip() for cf in child_futures):
|
813 |
-
print(f"Sub-query {idx} processed successfully because of child nodes")
|
814 |
-
else:
|
815 |
-
print(f"Sub-query {idx} failed to process because of child nodes")
|
816 |
-
|
817 |
print("Graph building complete, processing final tasks...")
|
818 |
await self.emit_event("search_process_completed", {
|
819 |
"depth": depth,
|
|
|
804 |
if no_child_done:
|
805 |
await self.emit_event("sub_query_failed", {"sub_query": sub_query})
|
806 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
807 |
print("Graph building complete, processing final tasks...")
|
808 |
await self.emit_event("search_process_completed", {
|
809 |
"depth": depth,
|