sqlcopilot-data
收藏资源简介:
SQL Copilot 提示包与原始模型生成数据集是 SQL Copilot 项目的中间产物,旨在通过测量而非主观偏好来选择数据库模式在提示中的表示方式。该数据集基于 Spider 1.0 数据集(CC BY-SA 4.0 许可证),包含从 Spider 数据库模式、问题以及采样的数据库值渲染而成的提示包,以及多个模型(如 Qwen2.5-Coder-1.5B/7B、OmniSQL-7B)对这些提示的原始生成结果。提示包涵盖五种格式:完整 DDL、紧凑格式、M-Schema 精简版、无值的 M-Schema 以及值增强型 DDL,每个格式均在一个固定的 200 项分层切片上渲染。数据集结构包括 bundles/ 目录下的 prompts.jsonl(渲染后的提示)和 manifest.json(包含序列化版本、提示模板哈希等元数据),以及 completions/ 目录下的模型原始输出 JSONL 文件。该数据集并非评测集或训练数据,而是用于分析提示格式对文本到 SQL 任务性能影响的工具。所有内容均基于 Apache-2.0 许可证的模型检查点生成,且原始模型输出未经过解析,确保可追溯性。
The SQL Copilot Prompt Package and Raw Model Generation Dataset is an intermediate artifact of the SQL Copilot project, designed to select the optimal representation of database schemas within prompts via quantitative measurement rather than subjective preferences. This dataset is built upon the Spider 1.0 dataset (licensed under CC BY-SA 4.0), and comprises prompt packages rendered from Spider database schemas, natural language questions, and sampled database values, alongside the raw generation outputs of these prompts from multiple models including Qwen2.5-Coder-1.5B/7B and OmniSQL-7B. The prompt packages cover five formats: Full DDL, Compact Format, M-Schema Lite, Value-free M-Schema, and Value-enhanced DDL, with each format rendered on a fixed stratified slice of 200 items. The dataset structure includes the bundles/ directory housing prompts.jsonl (rendered prompts) and manifest.json (metadata such as serialized version, prompt template hash, and other relevant details), as well as the completions/ directory containing the raw model output JSONL files. This dataset is neither a benchmark nor training data, but rather a tool for analyzing the impact of prompt formats on the performance of text-to-SQL tasks. All content is generated using model checkpoints licensed under the Apache-2.0 License, and the raw model outputs remain unparsed to ensure full traceability.
SQL Copilot 数据集详情
数据集概述
名称:SQL Copilot — prompt bundles and raw model generations
许可协议:CC BY-SA 4.0
语言:英语(en)
任务类别:文本生成(text-generation)
标签:text-to-sql、spider、evaluation
数据集内容与用途
该数据集是 SQL Copilot 项目的中间工作产物,包含两部分核心内容:
- 提示词包(prompt bundles):在 GPU 运行前渲染完成的提示词,每个提示词包含 Spider 数据库模式、问题以及从 Spider 数据库中采样的值。
- 原始模型生成结果(raw model generations):模型对提示词生成的原始补全内容,完全保留模型输出未经过解析处理。
数据集并非基准测试集,而是用于评估五种不同的数据库模式提示格式(完整 DDL、紧凑格式、M-Schema-lite、无值 M-Schema、值增强 DDL)在固定 200 项分层切片上的效果。其作用是通过测量而非偏好来确定如何将数据库模式写入提示词,而非用于模型训练或排行榜发布。
数据来源与版权
数据集中的提示词包衍生自 Spider 1.0 数据集(CC BY-SA 4.0 许可),每个包都包含 Spider 数据库模式、问题和采样值,属于衍生作品,因此在相同许可下重新分发。模型生成结果由 Apache-2.0 许可的检查点(Qwen/Qwen2.5-Coder-{1.5B,7B}-Instruct、seeklhy/OmniSQL-7B)生成,每个运行记录中记录了固定版本。
文件结构与格式
数据集目录结构如下:
bundles/<name>/prompts.jsonl:每个(arm, item)对应一个渲染提示词bundles/<name>/manifest.json:记录生成提示词的产品信息及固定哈希值completions/<name>/*.jsonl:每个提示词对应的原始模型输出
manifest.json 包含序列化器版本、提示词模板 SHA、值采样策略版本、prompts.jsonl 的 SHA-256 以及渲染代码的 git SHA,确保可重现性。
隐私保护措施
采样入提示词的值经过预定义策略过滤:与 PII 相关的列名通过子串进行黑名单过滤,高基数和主要唯一列会被跳过,每次拒绝都会记录原因。Spider 数据库是合成数据,因此不涉及敏感信息。
非内容说明
- 非评估集:问题和金标准 SQL 属于 Spider,请使用 Spider 进行评测
- 非训练数据:策划的 SFT 数据是独立的工件,具有自己的 manifest
- 非排行榜声明:由这些补全内容衍生的数值与生成它们的代码及来源标题文件一起保存




