[Feature] Improvement of Prompt Configuration for rag_demo Graph Index generation #185
Open
3 tasks done
Labels
enhancement
New feature or request
Search before asking
Feature Description (功能描述)
Issue:
File Path: .\incubator-hugegraph-ai\hugegraph-llm\src\hugegraph_llm\resources\demo\config_prompt.yaml
I have tested the current prompt against the following Large Language Models:
API:
The results after testing were very poor.
The prompt does not clearly define the format requirements as per Apache Gremlin's documentation and can be made better through further testing and more prompt engineering.
Example of outputs generated by the current prompt file:
Why are these results incorrect (after numerous tests)?
Errors related to missing keywords like "vertices", "edges", "edgelabels", "vertexlabels", "propertykeys", missing IDs, incorrect ID sequencing, missing "source_label" and "target_label", and other syntax errors.
Expected syntax example for reference:
Note:
The improvement of this process can be made in two iterations.
- First step: generate vertices.
- Second step: generate edges.
Why?:
Reduces the load on a single agent, decreasing generalization, especially while handling alarge context window.
This is all with the understanding that the schema and property keys are automatically added when the vertices and edges are correctly generated..
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: