Creeprime opened a new pull request, #274:
URL: https://github.com/apache/incubator-hugegraph-ai/pull/274

   ## Overview
   This PR implements a semi‑automated graph schema generation feature. The 
system collects raw data samples provided by the user, along with user‑provided 
or default built‑in Query Examples and Few‑Shot templates, sends them to the 
LLM to generate an initial schema draft for user reference. After users review 
and adjust the draft in the UI, the final Graph Schema is applied to the 
HugeGraph instance.
   
   ## Main Changes
   1. **New Operator: `schema_builder.py`**  
      - Adds `SchemaBuilder` operator responsible for prompt construction, 
invoking the LLM, and parsing the returned schema JSON.  
   2. **Built‑in Prompt Configuration: `prompt_config.py`**  
      - Preloads default Query Examples and Few‑Shot schema templates in 
`prompt_config.py`; users can directly use these default templates for schema 
generation.  
   3. **UI & Workflow Updates**  
      - Updates files such as `vector_graph_block.py` and 
`kg_construction_task.py` to add a collapsible "Advanced Schema Options" 
section in the “Build RAG Index” module for triggering the semi‑automated graph 
schema generation.  


-- 
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: issues-unsubscr...@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@hugegraph.apache.org
For additional commands, e-mail: issues-h...@hugegraph.apache.org

Reply via email to