This is an automated email from the ASF dual-hosted git repository.
imbajin pushed a commit to branch goal-scan
in repository https://gitbox.apache.org/repos/asf/hugegraph-ai.git
The following commit(s) were added to refs/heads/goal-scan by this push:
new fefe6b2b chore(llm): note request-scoped graph config follow-up
fefe6b2b is described below
commit fefe6b2bc5bfbf7854b3a24806f0c81beb4d62c2
Author: imbajin <[email protected]>
AuthorDate: Wed Jun 3 12:58:08 2026 +0800
chore(llm): note request-scoped graph config follow-up
- add TODO for replacing temporary huge_settings mutation
- document the request-scoped flow/operator context direction
- keep behavior unchanged for the current PR
---
hugegraph-llm/src/hugegraph_llm/api/rag_api.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hugegraph-llm/src/hugegraph_llm/api/rag_api.py
b/hugegraph-llm/src/hugegraph_llm/api/rag_api.py
index 1ac934ca..fcecc76f 100644
--- a/hugegraph-llm/src/hugegraph_llm/api/rag_api.py
+++ b/hugegraph-llm/src/hugegraph_llm/api/rag_api.py
@@ -68,6 +68,8 @@ def rag_http_api(
):
@contextmanager
def request_graph_config(req):
+ # TODO: pass graph config through request-scoped flow/operator context
+ # instead of temporarily mutating process-global huge_settings.
original_values = _snapshot_settings(huge_settings,
_GRAPH_CONFIG_FIELD_MAP.values())
try:
client_config = getattr(req, "client_config", None)