mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
A broad documentation pass across the areas LanceDB Enterprise and Embedded diverge on most: **Data Curation** -- GPU Function execution, Slurm scheduling (and what Slurm is, for readers new to it), blob late materialization as its own page, joins, aggregation/profiling, sampling, near-duplicate detection, chunking, distributed shuffle, and IVF-partition clustering. **Feature Engineering** -- computed columns and materialized views, restructured to lead with the Function-based path and show the SQL form side by side with Python throughout; a single Auto Refresh page instead of duplicating scheduling details on every refresh page; adaptive execution; checkpointing; GPU and Slurm placement for refresh workers; a Training Cache page for the PyTorch data loader's automatic cache benefit. **Security & Governance** -- an Audit Log reference (schema, access, grants), Secrets promoted to an ordinary catalog object with their own SQL DDL and a vending/rotation guide, and privilege-table fixes verified against the authorization source. **Deployment & Maintenance** -- Horizontal Scaling and OpenTelemetry moved into a real Deployment area; Automated Cleanup folded into Intelligent Auto-Maintenance (every other maintenance decision already lived there); RTE Compaction and Advanced Conflict Resolution documented in depth. **Landing page** -- the Enterprise feature comparison table reorganized (several redundant or stale rows removed, several new areas added), and the "why Enterprise" bullets replaced with ones tied to a concrete page (Performance, Scale, Fault tolerance, Multicloud deployment, Simplify operations) instead of vague promises. Plus a full pass addressing lancedb-gatekeeper's review: a real test-safety bug (a quickstart test could silently overwrite and delete a deployment's own `frames` table), a fabricated SQL statement with no backing implementation, an actual dedup-guarantee bug in `take_row_ids`, and dozens of documentation-accuracy fixes verified against source rather than taken on faith -- each either fixed, or left with an explicit note on why it needs a feature or deployment owner's sign-off instead of being guessed at. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018PXMCbRH6i5w47TsjeEUMT --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
87 lines
4.0 KiB
Plaintext
87 lines
4.0 KiB
Plaintext
---
|
|
title: "Meta Llama Synthetic Data Kit"
|
|
sidebarTitle: "Synthetic Data Kit"
|
|
description: "Use Meta Llama's Synthetic Data Kit with LanceDB to generate high-quality synthetic datasets for LLM fine-tuning and training."
|
|
|
|
---
|
|
|
|
|
|
|
|
[Synthetic Data Kit](https://github.com/meta-llama/synthetic-data-kit) is a tool from Meta LLAMA that helps you generate high-quality synthetic datasets for fine-tuning large language models (LLMs). It simplifies the process of preparing data for fine-tuning by providing a command-line interface (CLI) with a modular four-command flow.
|
|
|
|
One of the key features of the `synthetic-data-kit` is its use of the Lance format for storing and ingesting datasets. This allows for efficient storage and retrieval of data, which is crucial when working with large datasets.
|
|
|
|
### Key Features: {#key-features}
|
|
|
|
* **Data Ingestion:** The toolkit can ingest various file formats, including PDF, HTML, YouTube transcripts, DOCX, PPT, and TXT.
|
|
* **Fine-tuning Format Creation:** It can create different fine-tuning formats, such as question-answer (QA) pairs, QA pairs with Chain-of-Thought (CoT), and summarization formats.
|
|
* **Data Curation:** The tool uses Llama as a judge to curate high-quality examples, ensuring the quality of the generated dataset.
|
|
* **Flexible Saving Options:** You can save the generated datasets in various formats compatible with your fine-tuning workflow, including HuggingFace, JSONL, and JSON.
|
|
|
|
### How it Works: {#how-it-works}
|
|
|
|
The synthetic-data-kit follows a simple four-step process:
|
|
|
|
1. **Ingest:** Import your input files into the toolkit. The data is stored in the Lance format for efficient processing.
|
|
2. **Create:** Generate diverse fine-tuning datasets, such as reasoning, summarization, and QA pairs, from the ingested documents.
|
|
3. **Curate:** Use Llama to filter and select high-quality examples from the generated dataset.
|
|
4. **Save-as:** Export the curated dataset in your preferred format.
|
|
|
|
### Usage {#usage}
|
|
|
|
The `synthetic-data-kit` uses Lance format to store and manage the data that you ingest. The workflow is a series of commands that build on each other, starting with the `ingest` command.
|
|
|
|
Here is an example of the end-to-end workflow:
|
|
|
|
1. **Ingest Data into a LanceDB dataset**
|
|
|
|
This command reads a source document and creates a Lance dataset from it.
|
|
|
|
<CodeGroup>
|
|
```bash Bash icon="terminal"
|
|
synthetic-data-kit ingest docs/report.pdf --multimodal
|
|
# This will create a Lance dataset at data/parsed/report.lance
|
|
# with 'text' and 'image' columns.
|
|
```
|
|
</CodeGroup>
|
|
|
|
2. **Create fine-tuning data**
|
|
|
|
This command uses the Lance dataset created in the previous step to generate multimodal question-answer pairs.
|
|
|
|
<CodeGroup>
|
|
```bash Bash icon="terminal"
|
|
synthetic-data-kit create data/parsed/report.lance --type multimodal-qa
|
|
# This writes data/generated/report.json
|
|
```
|
|
</CodeGroup>
|
|
|
|
3. **Curate the data**
|
|
|
|
This step uses a language model to curate the generated data and ensure its quality.
|
|
|
|
<CodeGroup>
|
|
```bash Bash icon="terminal"
|
|
synthetic-data-kit curate data/generated/report.json
|
|
# This writes data/curated/report_cleaned.json
|
|
```
|
|
</CodeGroup>
|
|
|
|
4. **Save the final dataset**
|
|
|
|
Finally, save the curated data in the format you need: `jsonl`, `alpaca`, `ft` or `chatml`.
|
|
|
|
<CodeGroup>
|
|
```bash Bash icon="terminal"
|
|
synthetic-data-kit save-as data/curated/report_cleaned.json -f jsonl -o ./my_finetuning_data.jsonl
|
|
```
|
|
</CodeGroup>
|
|
|
|
This workflow allows you to go from a collection of documents to a high-quality, fine-tuning dataset with just a few commands. The use of LanceDB in the background makes the process efficient and scalable.
|
|
|
|
### Getting Started: {#getting-started}
|
|
|
|
To get started with the synthetic-data-kit, you can clone the [GitHub Repository](https://github.com/meta-llama/synthetic-data-kit) and install the necessary dependencies.
|
|
|
|
> **Note:** You will also need access to a Llama model, either running locally or via a hosted API.
|