Thespica opened a new issue, #210: URL: https://github.com/apache/incubator-hugegraph-ai/issues/210
### Bug Type (问题类型) others (please comment below) ### Before submit - [x] I had searched in the [issues](https://github.com/apache/incubator-hugegraph-ai/issues) and found no similar issues. ### Environment (环境信息) - Server Version: v1.5.0 - Toolchain Version: v1.5.0 - Data Size: xx vertices, xx edges <!-- (like 1000W 点,9000W 边) -->> ### Expected & Actual behavior (期望与实际表现) When I run the demo, clicking the `extract graph data` and finding that LLMs have generated the right json but the final output missed edges like: ``` { "vertices": [ { "id": "1:Sarah", "label": "person", "type": "vertex", "properties": { "name": "Sarah", "age": "30", "occupation": "attorney" } }, { "id": "1:James", "label": "person", "type": "vertex", "properties": { "name": "James", "occupation": "journalist" } }, { "id": "2:www.sarahsplace.com", "label": "webpage", "type": "vertex", "properties": { "name": "www.sarahsplace.com", "url": "www.sarahsplace.com" } }, { "id": "2:JamesWebpage", "label": "webpage", "type": "vertex", "properties": { "name": "JamesWebpage" } } ], "edges": [] } ``` part of output of qwen-max(code block was generated by LLMs): ``` { "vertices": [ { "id": "1:Sarah", "label": "person", "type": "vertex", "properties": { "name": "Sarah", "age": "30", "occupation": "attorney" } }, { "id": "1:James", "label": "person", "type": "vertex", "properties": { "name": "James", "occupation": "journalist" } }, { "id": "2:www.sarahsplace.com", "label": "webpage", "type": "vertex", "properties": { "name": "www.sarahsplace.com", "url": "www.sarahsplace.com" } }, { "id": "2:JamesWebpage", "label": "webpage", "type": "vertex", "properties": { "name": "JamesWebpage" } } ], "edges": [ { "id": 1, "label": "roommate", "type": "edge", "outV": "1:Sarah", "outVLabel": "person", "inV": "1:James", "inVLabel": "person", "properties": { "date": "2010" } }, { "id": 2, "label": "link", "type": "edge", "outV": "2:www.sarahsplace.com", "outVLabel": "webpage", "inV": "1:Sarah", "inVLabel": "person", "properties": {} }, { "id": 3, "label": "link", "type": "edge", "outV": "2:JamesWebpage", "outVLabel": "webpage", "inV": "1:James", "inVLabel": "person", "properties": {} } ] } ``` I found it that #187 had changed the format of json given in prompt, mean while haven't change the regex to extract json generated by LLMs by the format of json given in prompt. ### Vertex/Edge example (问题点 / 边数据举例) ```javascript same as demo ``` ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构) ```javascript same as demo ``` -- 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: dev-unsubscr...@hugegraph.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org