imbajin commented on code in PR #411:
URL: https://github.com/apache/hugegraph-ai/pull/411#discussion_r4529216501


##########
hugegraph-llm/src/hugegraph_llm/demo/rag_demo/rag_block.py:
##########
@@ -31,6 +31,16 @@
 from hugegraph_llm.utils.log import log
 
 
+TRACE_FIELDS = (
+    "keywords",
+    "match_vids",
+    "graph_result_flag",
+    "gremlin",

Review Comment:
   ⚠️ When Gremlin generation is enabled, `GraphQueryNode` puts the generated 
query in `context["gremlin"]`, but `BaseNode.run()` copies results through 
`WkFlowState.assign_from_json()`, which ignores keys without a declared 
attribute; the state has no `gremlin` field. Consequently this trace field is 
always omitted in the real flow. Please retain and reset the query in workflow 
state and cover the real node-to-state transition in a test.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to