Skip to content

Add SQL/PGQ prediction and Oracle evaluation support - #4

Open
oskar-van-rest wants to merge 5 commits into
ldbc:mainfrom
oskar-van-rest:oracle-sql-pgq
Open

oskar-van-rest wants to merge 5 commits into
ldbc:mainfrom
oskar-van-rest:oracle-sql-pgq

Conversation

@oskar-van-rest

Copy link
Copy Markdown

This PR extends the standalone Text2Graph workflow with ISO SQL/PGQ (ISO/IEC 9075-16) query generation and Oracle evaluation.

• Add sql_pgq as a prediction target with zero-shot and few-shot prompts, a required graph name, and schema input from SQL_PGQ/schema.txt.
• Add an Oracle evaluator for grammar accuracy using DBMS_SQL.PARSE and execution accuracy by comparing generated and gold query results.
• Treat selected Oracle name-resolution and semantic errors separately from grammar failures. Exclude failing gold queries from the execution-accuracy denominator.
• Integrate Oracle grammar evaluation into the existing similarity and Google BLEU workflow.
• Add the oracledb dependency and document connection setup and evaluator usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant