linmengmeng-1314 opened a new pull request, #341:
URL: https://github.com/apache/hugegraph-ai/pull/341

   ## Summary
   - Fix CN property graph extraction prompt output example: change from flat 
array `[{...}, {...}]` to structured format `{"vertices":[...], "edges":[...]}`
   - Add missing `"id"` field in edge example to keep CN/EN consistent
   
   ## Problem
   The CN prompt (`graph_extract_prompt_CN`) used a flat array format for the 
output example, while:
   - The EN prompt (`graph_extract_prompt_EN`) uses `{"vertices":[...], 
"edges":[...]}`
   - The actual parsing logic in `property_graph_extract.py` expects the 
structured format
   
   This mismatch could cause LLM to output incorrect JSON structure when 
processing Chinese text.
   
   ## Test plan
   - [ ] Verify ruff format and check pass
   - [ ] Confirm CN output example now matches EN structure
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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