Idea #1
Unstructured physical data has a hidden complexity explosion that breaks both common storage strategies, and Pydantic schemas are the right unification layer. A directory of video files looks trivially small on the surface — a few thousand files — but each file decomposes into clips, frames, detected objects, bounding boxes, confidence scores, and labels, producing an explosion from thousands of files to millions of nested records. The standard responses to this are both bad: storing metadata as JSON sidecar files on S3 produces millions of tiny files with terrible latency and no consistency guarantees; moving to a dedicated database fixes the analytical problem but creates a two-stack system (Python + SQL) that researchers won't tolerate because they don't want to maintain two languages and two schemas in sync. The insight is to use Pydantic as the single language for both code and schemas, with a transpiler that converts Python types to SQL under the hood. This eliminates the 'SQL island' in the codebase and makes structured querying accessible to researchers who already know Python. The speaker demonstrated this with 91 dashcam video clips: analyzing them with YOLO produced 100,000 detection records, and a simple Python filter (label == 'person') answered 'how many clips have people?' instantly from the local database. He called this the 'neutron star' property: 2,000 video files, like a neutron star the size of a city, contain the mass equivalent of millions of analytical objects.
[from: When Agents Meet Physical Data: The Other Physics of Agent Harnesses – Dmitry Petrov, DataChain — YouTube · AI Engineer · https://youtu.be/bUJgirn4_yc]
Idea #2
Every computed dataset in an LLM-based data pipeline should be paired with a structured knowledge base entry, so teammates and future agent sessions don't redundantly redo expensive compute. Processing large batches of binary files with LLM calls is expensive — but the bigger waste is different people on the same team independently paying this cost for the same data. The solution is a lightweight knowledge base (implemented as markdown files, one per dataset) that records: why the dataset was built (session context), a preview of the data, the schema, stats, storage dependencies, and — critically — the source code used to produce it. The source code is the most important element, a conclusion the speaker attributes to OpenAI's data agent research. When an agent or a teammate later asks a question about the same directory of files, the agent consults the knowledge base first, finds the existing dataset and its lineage, and reuses the results rather than recomputing. This creates a data lineage graph connecting source files (in object storage) → source code (in the knowledge base) → results (in the data warehouse). The DataChain demo showed the actual MD file produced after the dashcam YOLO analysis: it contained the session context ('why this was built'), the Pydantic schema, a data preview, storage dependency, stats, and the YOLO processing code — everything a future agent or human needs to understand and reuse the work.
[from: When Agents Meet Physical Data: The Other Physics of Agent Harnesses – Dmitry Petrov, DataChain — YouTube · AI Engineer · https://youtu.be/bUJgirn4_yc]
Idea #3
AI agents working on physical data should build a reusable metadata layer first, before attempting to answer any analytical question directly from raw files. The naive approach — asking an agent to answer a question about video or sensor data by running Python scripts on raw binary files — is the slowest and most expensive path. A well-designed data harness should teach the agent to pause before answering and ask itself: 'Do I already have a metadata layer (a precomputed table or dataset) that can answer this with a single SQL-ish query?' If not, it should build one that is general enough to answer not just the specific question asked but a class of related questions. This is the same principle behind dimensional data modeling (star schemas, one-big-table patterns) that the analytics industry has used for decades, but applied to unstructured data. The DataChain demo made this concrete: after a 24-minute initial pass where YOLO processed 91 dashcam clips and stored detections in a local database, subsequent analytical questions ('how many clips contain people?', 'what is the scale of detections?') were answered in seconds from the precomputed table rather than by re-scanning the raw video. The critical architectural shift is that the expensive compute happens once, upfront, to build the layer — and the agent reasons against the layer, not the raw files.
[from: When Agents Meet Physical Data: The Other Physics of Agent Harnesses – Dmitry Petrov, DataChain — YouTube · AI Engineer · https://youtu.be/bUJgirn4_yc]
Idea #4
For physical and unstructured data workloads, the right fix for poor agent performance is a domain-specific harness — not a stronger model. The instinct when an AI agent fails at data tasks is to upgrade to a frontier model. The speaker argues this is wrong: it treats the symptom rather than the cause. Agents' intuitions were developed on structured business data (tables, APIs, databases), and those intuitions actively mislead them when working with binary files in object storage. Anthropic measured agent accuracy at only 21% on data projects without specific data harnesses, even using frontier models. OpenAI found they needed six explicit layers of context to make data agents work. The correct intervention is architectural: build a harness that gives the agent the right capabilities for this domain — structured schemas to perceive data complexity, a parallel execution engine to process large volumes efficiently, incremental checkpointing to recover from failures, and a shared knowledge base to avoid redundant compute. The speaker frames this as the 'laws of physics changing': what works in the structured data universe (SQL warehouses, execution engines, tables) follows different rules than the physical data universe (object storage, binary files, nested detections). You need to build the equivalent of SQL warehouses, execution engines, and lineage systems for this new universe — not just throw a better brain at it.
[from: When Agents Meet Physical Data: The Other Physics of Agent Harnesses – Dmitry Petrov, DataChain — YouTube · AI Engineer · https://youtu.be/bUJgirn4_yc]
Source: When Agents Meet Physical Data: The Other Physics of Agent Harnesses – Dmitry Petrov, DataChain (AI Engineer)
Text summarized and optimized using Anthropic’s models and reviewed by a human.