-
Notifications
You must be signed in to change notification settings - Fork 60
Text2Gremlin Data Generation and Model Fine-Tuning System (Vertical Scenarios and General Scenarios) #303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
LRriver
wants to merge
28
commits into
apache:main
Choose a base branch
from
LRriver:text2gremlin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
β¦eneration parameters
β¦nnectors support
β¦ data instances
β¦ing and call/with support
β¦y variants from Recipe
β¦cation and error handling
β¦and visitor classes
β¦with correctness guarantee and preliminary question generalization
β¦and llm_handler
β¦ data directory
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LLM-based Gremlin QA Synthesis and Generalization in Vertical Scenarios.
ποΈ Project Structure
./graph2gremlin.py
: Initially generates Gremlin data based on templates and graph data, ensuring correctness through templates, and translates and preliminarily generalizes the Gremlin data and questions../gremlin_checker.py
: Performs syntax checking using Antlr4../llm_handler.py
: An LLM interaction model that inputs QA data for each batch of seed numbers (during seed data generation, queries undergo a small batch generalization), allowing the LLM to understand how to write text2gremlin, first generalizing Gremlin, then translating and generalizing the query../qa_generalize.py
: Callsgremlin_checker
andllm_handler
for seed data generalization../instruct_convert.py
: Handles instruction format conversion and the division of training and test sets../db_data
: Contains schema and graph data../data/seed_data
: Seed data (to be uploaded)../data/vertical_training_sets
: Vertical scenario generalization data (to be uploaded).Gremlin Corpus Generation System Based on Recursive Backtracking in General Scenarios.
π Project Overview
This PR adds a complete Text-to-Gremlin corpus generation system based on a recursive backtracking recipe-guided generation approach, capable of automatically generating large-scale and diverse training data from Gremlin query templates.
ποΈ Project Structure
π― Core Features
Recipe-Guided Generation
Large-Scale Data Processing
Complete Error Handling
Intelligent Constraint Mechanism
π System Capabilities
π§ͺ Technical Features
π Application Value
π§ Usage
π Documentation