datachain
llms.txt2.8k starsChanged 2 years agoApache-2.0View on GitHub
DataChain is the Data Context Layer for unstructured data. It chains Python functions and warehouse-speed data operations into composable queries, and every query deposits its result into the Dataset DB as a versioned, typed dataset with automatic lineage. The next query (human or agent) starts from prior conclusions instead of raw bytes. The Compute Engine produces; the Dataset DB recalls; the Knowledge Base compiles datasets into agent-readable knowledge. Access everything through dc.*: dc.read_storage(), dc.Column(), dc.func.*, dc.File, dc.ImageFile, etc. For annotation…
Trending
More talk lately.thin dataabout the whole repository
Who's talking about datachain-ai/datachain
- sudosubin/agents.nix“agent-skills.github.datachain-ai.datachain: 0.59.13 → 0.60.0”GitHub · Oct 5, 2026
- sudosubin/agents.nix“agent-skills.github.datachain-ai.datachain: 0.59.7-unstable-2026-09-01 → 0.59.13”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.datachain-ai.datachain: init at 0.59.7-unstable-2026-09-01”GitHub · Sep 26, 2026
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this llms.txt into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Always type Python operation return values -- missing annotations default to str and crash
- Very specific: line 47
Always use trailing slash in storage URIs: "s3://bucket/path/"
- Very specific: line 49
Use save() before filter() on expensive Python operation output
- Very specific: line 50
Use settings(parallel=True) for ML/LLM operations
- Distinctive: line 51
Use data-engine operations (filter, mutate, group_by) over Python when possible
- Very specific: line 53
Use dc.func.* for SQL-speed analytics: distance, aggregate, window, path, string, conditional
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# DataChain
> DataChain is the Data Context Layer for unstructured data. It chains Python functions and warehouse-speed data operations into composable queries, and every query deposits its result into the Dataset DB as a versioned, typed dataset with automatic lineage. The next query (human or agent) starts from prior conclusions instead of raw bytes. The Compute Engine produces; the Dataset DB recalls; the Knowledge Base compiles datasets into agent-readable knowledge.
## Import Convention
```python
import datachain as dc
```
Access everything through `dc.*`: `dc.read_storage()`, `dc.Column()`, `dc.func.*`, `dc.File`, `dc.ImageFile`, etc.
For annotation types: `from datachain import model`
For custom types: `from pydantic import BaseModel`
Never use: `from datachain import File, C, func`
## Key Patterns
### Read data
- `dc.read_storage("s3://bucket/path/", type="image")` -- files from cloud storage
- `dc.read_csv()`, `dc.read_json()`, `dc.read_parquet()` -- structured formats
- `dc.read_database(query, connection_string)` -- SQL databases
- `dc.read_dataset("name")` -- previously saved datasets
- `dc.read_pandas(df)`, `dc.read_hf("dataset")` -- in-memory sources
### Transform data
- `.filter(dc.C("col") > value)` -- SQL-compiled filter (warehouse speed)
- `.mutate(new_col=dc.func.path.file_ext("file.path"))` -- SQL-compiled column derivation
- `.map(result=my_function)` -- Python operation per record (needs `settings(parallel=N)` for perf)
- `.gen(chunks=split_function)` -- expand one record to many
- `.agg(summary=aggregate_fn, partition_by="group_col")` -- group and reduce
- `.merge(other, on="key")` -- join two chains
- `.group_by(count=dc.func.count(), partition_by="col")` -- aggregate analytics
### Save and export
- `.save("dataset_name")` -- versioned, named dataset (PREFERRED terminal operation)
- `.persist()` -- anonymous cache for branching
- `.to_pandas()`, `.to_parquet()`, `.to_csv()`, `.to_json()` -- export formats
- `.to_pytorch(transform=..., tokenizer=...)` -- PyTorch DataLoader
- `.to_storage("s3://output/")` -- write files to storage
- `.to_database("table", "connection_string")` -- write to SQL database
## Critical Rules
1. Always type Python operation return values -- missing annotations default to `str` and crash
2. Always use trailing slash in storage URIs: `"s3://bucket/path/"`
3. Pass `anon=True` for public buckets
4. Use `save()` before `filter()` on expensive Python operation output
5. Use `settings(parallel=True)` for ML/LLM operations
6. Use data-engine operations (filter, mutate, group_by) over Python when possible
7. One output signal per map/gen/agg -- use Pydantic models for multiple fields
8. Use `dc.func.*` for SQL-speed analytics: distance, aggregate, window, path, string, conditional
## Documentation Sections
- Getting Started: /getting-started/
- Core Concepts: /concepts/ (dataset db, datasets, chain, execution model, files and types)
- Guides: /guide/ (reading data, operations, Python operations, exporting, datasets, functions, scaling, best practices)
- API Reference: /references/ (auto-generated from docstrings)
- CLI Reference: /commands/
- Best Practices: /guide/best-practices/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

