From a36c7febeba170ef5543032ebdbd74e32bb271fe Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 16 Nov 2026 08:20:57 +0100 Subject: [PATCH 1/2] docs(readme): align intro with documentation and correct python requirement --- README.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c4ca6c8..447e283 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Datafast logo -

Generate diverse synthetic datasets with LLMs, from a pipeline you can read.

+

Generate high-quality and diverse synthetic data with LLMs.

[![PyPI version](https://img.shields.io/pypi/v/datafast?color=f5c518)](https://pypi.org/project/datafast/) [![Python versions](https://img.shields.io/pypi/pyversions/datafast)](https://pypi.org/project/datafast/) @@ -18,17 +18,14 @@ -Datafast is a Python library for developers and ML engineers who need a dataset for an -LLM project and do not have one yet. +Datafast is a Python library for generating synthetic datasets with LLMs. -A plain script that loops over prompts gets hard to control. You must write the -nested loops that cover each combination of inputs. Without checkpoints, a crash -halfway means you pay for the same LLM calls again. Without metadata, you cannot tell -which input and which model made each record. +You assemble building blocks for data operations into a custom pipeline that generates a dataset +matching your project needs. It works with open-weight and proprietary models. -With datafast, you declare the dimensions that your dataset must cover, connect steps -into a pipeline, and run it. The pipeline writes the dataset to JSONL, CSV, Parquet or -the Hugging Face Hub. +Declare the dimensions your dataset must cover, connect generation and data processing +steps, and run the pipeline. Save the dataset to JSONL, CSV, Parquet or the Hugging +Face Hub. ## Install @@ -36,7 +33,7 @@ the Hugging Face Hub. pip install datafast ``` -Datafast needs Python 3.10 or newer. Extras add Parquet, the Hugging Face Hub and +Datafast needs Python 3.11 or newer. Extras add Parquet, the Hugging Face Hub and Langfuse tracing: see [Installation](https://patrickfleith.github.io/datafast/installation/). ## Quick example From 2dcb49c736a272d4896df538194ff994aff96bb8 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 16 Nov 2026 08:30:53 +0100 Subject: [PATCH 2/2] docs: synchronize homepage introductions and guard wording --- README.md | 11 +++++----- docs/index.md | 12 +++++++++-- tests/test_homepage_intro.py | 39 ++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 tests/test_homepage_intro.py diff --git a/README.md b/README.md index 447e283..e07ca25 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,13 @@ Datafast is a Python library for generating synthetic datasets with LLMs. -You assemble building blocks for data operations into a custom pipeline that generates a dataset -matching your project needs. It works with open-weight and proprietary models. +You assemble building blocks for data operations into a custom pipeline that generates +a synthetic dataset matching your project's needs. It works with open-weight and +proprietary models. -Declare the dimensions your dataset must cover, connect generation and data processing -steps, and run the pipeline. Save the dataset to JSONL, CSV, Parquet or the Hugging -Face Hub. +Start with seeds or the dimensions your dataset must cover. Connect LLMs and data +processing steps for filtering, transformations, and annotations, then run the pipeline. +Save the dataset locally or push it to the Hugging Face Hub. ## Install diff --git a/docs/index.md b/docs/index.md index 94b4f20..e9f0f58 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,7 +6,15 @@ hide: # Datafast Generate high-quality and diverse synthetic data with LLMs. -In datafast, you assemble building blocks of data operations that would otherwise be done manually. It is designed to be flexible and modular, and you get a custom pipeline that generates a dataset matching your project needs. It works with open-weights and proprietary models. +Datafast is a Python library for generating synthetic datasets with LLMs. + +You assemble building blocks for data operations into a custom pipeline that generates +a synthetic dataset matching your project's needs. It works with open-weight and +proprietary models. + +Start with seeds or the dimensions your dataset must cover. Connect LLMs and data +processing steps for filtering, transformations, and annotations, then run the pipeline. +Save the dataset locally or push it to the Hugging Face Hub. ### Intended Use Cases @@ -71,4 +79,4 @@ AI projects all need something special in their datasets. Whether this is for tr - An `llms.txt` so you can ask questions about of docs to your favorite AI. - A `datafast` SKILL so your coding agent can build the pipeline the right way under your supervision. -- Integration with llama.cpp, vLLM \ No newline at end of file +- Integration with llama.cpp, vLLM diff --git a/tests/test_homepage_intro.py b/tests/test_homepage_intro.py new file mode 100644 index 0000000..da66454 --- /dev/null +++ b/tests/test_homepage_intro.py @@ -0,0 +1,39 @@ +"""Keep the README and documentation home page on the approved introduction.""" + +from pathlib import Path + +import pytest + +ROOT = Path(__file__).parent.parent +TAGLINE = "Generate high-quality and diverse synthetic data with LLMs." +INTRO = """ +Datafast is a Python library for generating synthetic datasets with LLMs. + +You assemble building blocks for data operations into a custom pipeline that generates +a synthetic dataset matching your project's needs. It works with open-weight and +proprietary models. + +Start with seeds or the dimensions your dataset must cover. Connect LLMs and data +processing steps for filtering, transformations, and annotations, then run the pipeline. +Save the dataset locally or push it to the Hugging Face Hub. +""" + + +@pytest.mark.parametrize( + "path, start, end, tagline", + [ + ("README.md", "", "## Install", f"

{TAGLINE}

"), + ("docs/index.md", TAGLINE, "### Intended Use Cases", TAGLINE), + ], +) +def test_homepage_intro_stays_as_approved(path, start, end, tagline): + page = (ROOT / path).read_text(encoding="utf-8") + assert tagline in page, f"{path} changed the approved tagline" + _, separator, rest = page.partition(start) + assert separator, f"{path} is missing {start!r}" + intro, separator, _ = rest.partition(end) + assert separator, f"{path} is missing {end!r}" + # Keep paragraph breaks, but allow editors to rewrap lines. + paragraphs = [" ".join(p.split()) for p in intro.strip().split("\n\n")] + expected = [" ".join(p.split()) for p in INTRO.strip().split("\n\n")] + assert paragraphs == expected, f"{path} changed the approved introduction"