16 natural language to sql#40
Open
Franci-343 wants to merge 12 commits into
Open
Conversation
…ith schema parsing, intent classification, and validation pipeline
…nthetic data generation
…normalization and ENUM support
…hema preview components - Added `SchemaUploader` component for loading database schemas from files or pasted DDL. - Introduced `SchemaPreview` component to display loaded schema details. - Created `QueryBuilder` component for generating SQL from natural language and testing queries in a sandbox. - Implemented a lightweight DDL parser in `parser.ts` to extract table and column definitions. - Updated `page.tsx` to integrate new components and manage execution states. - Defined local types for schema and execution states in `types.ts`.
…ic_data - Updated the _mock_value function in sandbox_manager.py to return a boolean value for boolean types instead of an integer. - Updated the _mock_value function in synthetic_data.py to return a boolean value for boolean types instead of an integer. - Removed the sql_sandbox.py file as it is no longer needed.
… to prevent disk space accumulation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Reorganized imports for better readability in parser.ts and result-parser.ts. - Refactored parseDDL function to utilize matchAll for table regex matching, enhancing performance and clarity. - Simplified comment stripping in parseDDL by chaining replace calls. - Updated execution state management in SqlConverterPage to improve clarity and maintainability. - Enhanced type definitions in types.ts for better code consistency. - Improved formatting and indentation across multiple files for better readability.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Oxtools Submission
Project name: [natural language to sql]
Contributor: [@Franci-343]
What does this tool do?
natural language to sql is a multi-agent tool that translates natural language queries into dialect-correct SQL, validates the generated code, and executes it inside isolated sandbox databases.
The tool leverages the Oxlo.ai API (
api.oxlo.ai/v1/chat/completions) to orchestrate multiple specialized LLM agents: deepseek-v3.2 for intent classification (extracting table targets, filters, joins, and complexity from natural language), qwen-3-coder-30b for standard SQL generation and refinement, and deepseek-r1-0528 for complex analytical queries that require deeper reasoning.Submission checklist
Structure
projects/[my-project-name]/Required files
Dockerfileis present anddocker build .succeedsdocker-compose.ymlis present anddocker compose upstarts the appoxlo-manifest.jsonis present and all fields are filled in.env.examplelists every environment variable the project needs (with empty values)README.mdis present with setup instructions a reviewer can follow exactlySecurity
.envfile is not included in this PRgit grep -i "api_key"and found no leaksOxlo API
OXLO_API_KEYenvironment variableFor maintainers
docker build .succeeded locallydocker compose upran successfully and app is reachable