Learning resourcesReviewed · Pydantic

Pydantic AI Harness Pixeltable integration guide

This guide helps Python developers connect Pydantic AI agents to Pixeltable data and saved notes, but deleted notes remain in table history. It covers read-only queries, embedding-based search and an optional memory store, with documented requirements of Python 3.11 to 3.14 and Pixeltable 0.7.21 or later.

Researched 15 Nov 2026

In short.

This guide helps Python developers add Pixeltable search and saved notes to Pydantic AI agents, but its memory store cannot erase a note's history without dropping the table. It documents table allowlists, bounded query results and memory writes designed to handle retries. The catalog tools and memory store work independently. Provider prices are unknown, the 0.x API may change between minor releases, and runtime behavior has not been tested.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete selected documentation page at [https://pydantic.dev/docs/ai/harness/pixeltable/index.md], including usage examples, media processing, catalog tools, memory storage, multiple instances, telemetry, agent specs, API reference and the 0.x compatibility notice. Linked pages, repository implementations and downloadable files are excluded. Source statements support descriptions of documented behavior; no installation, execution, benchmark, crash-recovery test or provider verification was performed. Licensing and prices remain unknown.

The overview

Identity

The resource is the Pixeltable integration guide within Pydantic AI Harness, at [https://pydantic.dev/docs/ai/harness/pixeltable/index.md]. It covers Pixeltable, a capability that gives agents tools for existing tables and views, and PixeltableMemoryStore, which persists agent notes in a Pixeltable table. Either component can be used without the other.

Assessment

The guide is a useful starting point for developers whose application data already lives in Pixeltable and who want an agent to retrieve selected records or search indexed content. Its strongest practical detail is the separation between read-only catalog access and a writable memory store, together with explicit access and output limits.

The main adoption concern is memory retention: overwritten and deleted notes remain accessible through earlier table versions. The page also documents limitations that matter in application design, including equality-only filters, unsupported memory metadata and potentially paid embedding calls. Installation success, search quality and operational reliability are not assessed.

Users

The material is aimed at Python developers building Pydantic AI agents over structured records, document text or text extracted from media. It is particularly relevant when keeping searchable data and persistent agent notes in the same catalog is useful.

Beginners get installation commands and a small handbook example, but still need to understand Python packages, tables, provider credentials and embeddings. Experienced developers get details about access boundaries, concurrent memory writes, retries, result truncation and agent-spec configuration.

Capabilities

The catalog capability exposes four tools. list_tables lists allowed table and view paths. describe_table returns schema and index information. query_table retrieves rows using equality filters. similarity_search finds nearby indexed content by embedding the query and returns similarity scores.

PixeltableMemoryStore implements persistent memory and lexical memory search with prefix isolation. The underlying memory table supports queries, joins and computed columns. A linked video example is described as transcribing speech, captioning frames and retrieving stored text with timestamps; the catalog tools omit media columns from results.

Using it

Requirements

The documented integration requires Python 3.11 to 3.14, Pixeltable 0.7.21 or later and the pixeltable extra for pydantic-ai-harness. Catalog tools operate over existing tables or views; similarity search additionally requires an embedding index on the searched column. The memory table is created on first use.

The supplied setup also installs pydantic-ai-slim with the openai and spec extras for its OpenAI and YAML examples. The video example explicitly requires OPENAI_API_KEY. Hardware requirements, deployment sizing and a fully pinned dependency set are not provided.

Mechanism

Pixeltable receives an allowlist of table paths or directory prefixes. A similarity search invokes the chosen index's embedding function for the query, then orders matching rows by similarity. Query results contain table, rows and truncated fields. Default capability caps are 20 rows and 8000 serialized JSON characters; individual calls default to 10 rows for query_table and 5 for similarity_search.

Memory mutations use compare-and-set versions and operation receipts so retries can replay an operation. Because Pixeltable has no multi-statement transaction, a pending receipt precedes the mutation and a completed receipt follows it. The documentation claims at-most-once application across multiple writers and crashes between table operations; those guarantees have not been independently tested.

Setup

The documented pip command is pip install "pydantic-ai-harness[pixeltable]" "pydantic-ai-slim[openai,spec]". Its Python example creates hr.handbook, inserts a policy record and adds a text embedding index using OpenAI's text-embedding-3-small. The agent then receives Pixeltable(['hr.handbook']) and, optionally, Memory(PixeltableMemoryStore(table_name='hr.memory')).

For YAML or JSON agent specs, Pixeltable's allowlist is its positional argument. Loading the spec requires custom_capability_types=[Pixeltable]. PixeltableMemoryStore is configured through Python; the documented Memory spec backends are memory, file and sqlite.

Example

The handbook example stores a rule allowing meals during business travel up to 60 EUR per day. The agent is asked whether a 75 EUR dinner can be expensed and to remember that the user travels monthly. This illustrates retrieval plus persistent notes, but the displayed output is only a placeholder, so it establishes no observed answer or successful memory write.

The page describes a separate video example that transcribes 30-second audio segments, captions one frame every 10 seconds and indexes the resulting text. Searches return text with timestamps. A second agent run is described as recalling a preference without the first run's chat history; the linked script and its execution were not assessed.

Assessment & evidence

Limitations

query_table supports equality filters only. Projections and filters exclude media, arrays, binary data, unstored computed columns and unstored iterator outputs. These restrictions avoid exposing local media paths or rerunning computations during reads. Oversized strings are shortened and other oversized values become null, so consumers must inspect truncated. The row and character caps apply to query results; list_tables and describe_table are sized by the allowlist and schema.

An allowlist of ['*'] exposes the whole catalog, including memory tables. Allowed views expose their base table's columns. Historical version handles are refused by the catalog tools. Differing Pixeltable capabilities need distinct IDs and PrefixTools; a Pixeltable capability passed to a single run replaces the agent's Pixeltable capability instead of merging with it, so it can widen what that run can reach.

PixeltableMemoryStore does not support MetadataMemoryStore, and Memory(write_metadata=...) raises UserError. Memory paths are limited to 255 characters, operation IDs to 248, and __op__ is reserved. Receipts and historical memory versions persist; the documented way to purge memory history is to drop the table. Application writes and deletes should go through the store to preserve its versions and receipts.

Reasoning

The documented separation supports a practical adoption choice: use the catalog capability for retrieval, then add memory only when lasting notes are needed. Keeping both in Pixeltable is useful when the application needs to query or join notes alongside other data. A requirement to erase individual notes from history conflicts with this memory store's documented retention behavior.

Read-only catalog tools can still trigger embedding-provider calls. Invalid requests, missing tables and transient provider errors become ModelRetry, while infrastructure and authorization failures propagate to the application. These distinctions affect cost controls and error handling; they do not establish retrieval accuracy or production reliability.

Alternatives

The page explicitly allows pairing the Pixeltable catalog capability with Harness Memory using another store. It also names memory, file and sqlite as Memory backends supported by agent specs. Developers who need catalog search can therefore choose memory storage separately.

The selected page does not compare those stores' durability, deletion behavior, performance or costs. It provides no evidence for ranking competing agent frameworks, databases or retrieval integrations.

Evidence

The evidence is the complete documentation page at [https://pydantic.dev/docs/ai/harness/pixeltable/index.md], retained as selected-page.txt. It contains installation examples, catalog-tool behavior, memory-store guarantees and limitations, agent-spec configuration and API reference material.

Linked source files, the downloadable video script, other documentation and provider pages are outside the supplied evidence. No code was executed. Installation, model availability, retrieval quality, concurrency behavior, crash recovery and performance remain unverified.

Access & freshness

Costs

Package pricing, provider rates and total operating cost are unknown. Each similarity_search embeds its query using the index's embedding function, which may incur a paid provider call. The supplied examples also use an OpenAI agent model, text embeddings and, for video, transcription and frame captioning.

Memory storage grows with operations and retained row versions. An uninterrupted write with a new operation ID creates three table versions: pending receipt, applied write and completed receipt. The page supplies no storage measurements, latency figures or cost estimates.

Rights

The supplied page does not state a license or redistribution permission for its text, package code or linked examples. Repository links do not establish those permissions. Applicable license terms remain unknown within the selected evidence.

The examples use OpenAI to process content for embeddings, transcription and captions. Provider terms, retention settings, data residency and permissions for processing particular datasets are not established by this page.

Freshness

The supplied page was captured on 15 November 2026 at 11:43:52 UTC. This establishes the capture time, not the publication date or latest upstream revision.

The page warns that Pydantic AI Harness APIs may change between minor releases while on 0.x, with deprecation warnings and release-note migration guidance. An exact Harness release is not identified. Current package compatibility, availability of the example model identifiers and provider prices are unknown.

Actions

Before adoption, confirm compatible package versions and provider access, choose the narrowest table allowlist and inspect what allowed views expose. Decide whether retained memory history fits the data's deletion requirements before storing notes. Obtain applicable license and provider terms, and estimate embedding, model and storage costs.

Validate representative equality queries, similarity results, truncation handling and application error paths in your environment. If persistent memory is required, check retry and concurrent-write behavior against your needs. The page's examples provide starting configurations; they do not establish these outcomes.

Evidence for this report

selected-page.txtselected · checked 2026-11-15