nw9663644-eng commented on code in PR #370:
URL: https://github.com/apache/hugegraph-ai/pull/370#discussion_r3563597352


##########
hugegraph-llm/src/hugegraph_llm/flows/graph_extract.py:
##########
@@ -53,6 +54,13 @@ def prepare(
             raise ValueError("split_type must be document, paragraph, or 
sentence")
 
         prepared_input.split_type = split_type
+        try:
+            graph_extract_max_workers = int(graph_extract_max_workers)
+        except (TypeError, ValueError) as exc:
+            raise ValueError("graph_extract_max_workers must be a positive 
integer") from exc
+        if graph_extract_max_workers < 1:

Review Comment:
   Thanks for the review. I addressed this by adding 
`graph_extract_max_workers` to the REST request model and forwarding it through 
the REST graph extraction path as well.
   
   The same bounded concurrency setting is now available from both the demo UI 
path and the REST API path, and the backend validates it with a shared cap of 
1–8 workers instead of relying only on the UI slider.
   



-- 
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