← Latest papers
🤖 AI

A Query Engine for the Agents

This paper introduces Hyperparam, a suite of lightweight, open-source JavaScript libraries designed to enable efficient, model-aware querying of unstructured agent data directly within client-side AI applications by interleaving SQL analytics with asynchronous LLM interpretation.

Original authors: Kenny Daniel

Published 2026-05-28
📖 4 min read☕ Coffee break read

Original authors: Kenny Daniel

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a massive library of unorganized notes, chat logs, and robot thoughts (what the paper calls "agent traces"). In the past, if you wanted to find a specific story in this library, you had to hire a team of librarians (servers like Spark or Trino) to go to a central warehouse, pull out the books, and read them for you. This was slow, expensive, and required you to wait in line.

Hyperparam is a new tool that changes the game. Instead of sending a librarian to the warehouse, it gives you (or your AI assistant) a tiny, super-fast flashlight and a pair of reading glasses right where you are sitting.

Here is how it works, broken down into simple concepts:

1. The Problem: The "Heavy Backpack"

Current AI tools (like coding assistants or chatbots) are running on your computer or in your browser. They want to analyze data, but the tools built for big data (like DuckDB or Spark) are like heavy backpacks.

  • They are too big to fit in a browser tab.
  • They take too long to load (like waiting for a bus).
  • They require a separate server to talk to, which slows everything down.

2. The Solution: The "Pocket-Sized Detective"

The authors built Hyperparam, which is actually three tiny tools combined into one package that is smaller than a single JPEG image (under 70 KB).

  • Hyparquet: This is the flashlight. It knows how to peek at a massive file (Parquet) without downloading the whole thing. It only reads the specific pages you ask for.
  • Icebird: This is the map. It helps find specific files in a massive storage system (Iceberg) without needing a central server to tell you where they are.
  • Squirreling: This is the detective. It's the brain that asks the questions.

3. The Magic Trick: "Lazy Reading"

The most important feature is how Squirreling reads data. Imagine you are reading a mystery novel, but you only care about the parts where the detective finds a clue.

  • Old Way (DuckDB-WASM): The engine reads the entire book, page by page, even if you only wanted the last chapter. If the book has a "smart AI" that needs to read every page to understand it, the AI has to read the whole book, which costs a lot of money and time.
  • Hyperparam Way (Lazy Reading): The engine waits. It only opens a page if the next step in the process actually needs it.
    • If you ask, "Show me the 5 most confusing moments," it only reads enough text to find those 5 moments. It ignores the rest of the 10,000 pages.
    • If an AI needs to "think" about a sentence to answer a question, Hyperparam only asks the AI to think about the sentences that are actually relevant. It doesn't waste money asking the AI to read boring parts.

4. Why It's Faster and Cheaper

The paper tested this against the current standard (DuckDB-WASM) using an AI agent trying to solve 10 different data puzzles.

  • Speed: Because it doesn't have to load a heavy engine or wait for a server, it starts working almost instantly.
  • Cost: Because it uses "lazy reading," the AI agent made fewer mistakes and didn't have to re-read its own work as many times. This saved about two-thirds of the money compared to the old way.
  • The "Stuck" Problem: In the old system, if the AI was taking a long time to think about one sentence, the whole process stopped. In Hyperparam, the process keeps moving, and the AI's answer just "streams in" as it becomes ready.

5. The Bottom Line

This paper argues that the way we handle data needs to change because AI agents are now the ones asking the questions, not just humans.

  • Agents don't want to wait for a server.
  • Agents don't want to pay to read data they don't need.
  • Agents need tools that fit inside their own "brain" (the browser or app) instantly.

Hyperparam is that tool: a tiny, instant, money-saving engine that lets AI agents read massive libraries of text right where they live, without needing a heavy infrastructure team behind them.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →