LRriver opened a new pull request, #361: URL: https://github.com/apache/hugegraph-ai/pull/361
## Summary - Extend the graph extraction API introduced by apache/hugegraph-ai#351 with service-backed synchronous extraction, async jobs, graph import, and extract-and-import endpoints. - Add `content_type`/`content` support for raw text and pre-split chunks, request-bounded chunk parallelism, metadata, and structured error responses. - Harden schema validation, request-local HugeGraph client configuration, import result reporting, extraction LLM config fallback, and route registration. ## Relation to #351 This builds on the initial synchronous `POST /graph/extract` endpoint from apache/hugegraph-ai#351 and keeps that wire shape compatible while expanding the production API surface. ## Tests - `uv run ruff format --check .` - `uv run ruff check .` - `uv run pytest hugegraph-llm/src/tests/api/test_graph_extract_api.py hugegraph-llm/src/tests/api/test_graph_extract_jobs.py hugegraph-llm/src/tests/api/test_graph_import_api.py hugegraph-llm/src/tests/flows/test_graph_extract_flow.py hugegraph-llm/src/tests/models/llms/test_init_llm.py hugegraph-llm/src/tests/nodes/test_extract_node.py hugegraph-llm/src/tests/operators/llm_op/test_property_graph_extract.py hugegraph-llm/src/tests/operators/hugegraph_op/test_commit_to_hugegraph.py hugegraph-llm/src/tests/operators/hugegraph_op/test_commit_to_hugegraph_load_into_graph.py -q` - `SKIP_EXTERNAL_SERVICES=true uv run pytest hugegraph-llm/src/tests/api -v --tb=short` - `SKIP_EXTERNAL_SERVICES=true uv run pytest hugegraph-llm/src/tests/config/ hugegraph-llm/src/tests/document/ hugegraph-llm/src/tests/operators/ hugegraph-llm/src/tests/models/ hugegraph-llm/src/tests/indices/ hugegraph-llm/src/tests/test_utils.py -v --tb=short` ## Review - CodeRabbit review completed with 0 findings after follow-up fixes. -- 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]
