Source: https://benchmarks.coralogix.com/dataset-agents

# Experiment: The impact of curated datasets on AI agent token use

[Coralogix](https://coralogix.com/) is a full-stack observability platform. It processes telemetry as it streams in and keeps it, always queryable, in the customer's own cloud object storage. We wanted to know whether curated datasets cut the work an AI agent does to answer questions about production telemetry. Three versions of the same agent each answered 100 questions about three businesses, from simple lookups to multi-step investigations, ten times over. One could query only raw logs and spans. A second was told how to find datasets, and a third had every dataset described in its system prompt. Across 3,000 sessions, we measured tokens, time, tool calls and accuracy.

## At a glance

With the dataset catalog in their system prompt, agents answered the same 100 questions with 86% fewer tokens and solved 939 of 940 runs, against 930 with raw telemetry alone.

**−86%**

### Tokens per question with datasets in the system prompt

**−61%**

### Tokens per question when agents discovered datasets

**−72%**

### Time to answer

**−79%**

### Tool calls

**−90%**

### Sessions that ran out of time

## The telemetry we started with

Every question ran against Coralogix’s own demo account, which simulates three businesses: an online casino and sportsbook, an ecommerce store and a research platform for finance clients. Over the seven days we used, they sent about 40 million log records and 35 million spans from 69 services.

## What is a dataset?

A dataset is a named collection of telemetry inside a [dataspace](https://coralogix.com/docs/user-guides/data-layer/overview/), much like a table inside a database. Every account starts with `logs` and `spans`, and you can [add your own](https://coralogix.com/docs/user-guides/data-layer/default-dataspace/user-defined-datasets/) in two ways. A [TCO Optimizer](https://coralogix.com/docs/user-guides/account-management/tco-optimizer/) policy routes matching logs into a streaming dataset as they arrive. A [Background Query](https://coralogix.com/docs/user-guides/dataengine/background_queries_v2/) writes the results of a DataPrime query into a summary dataset, such as one row per order or one row per service per hour.

Each dataset keeps its own schema and access policy, sits in [your own cloud object storage](https://coralogix.com/platform/infinite-retention/), and answers any [DataPrime](https://coralogix.com/platform/dataprime-engine/) query that names it. An agent reading the finance platform’s per-client daily rollup scans 483 rows. The logs it was built from hold 1.5 million.

## Three agents, the same 100 questions

All three ran the same GLM 5.3 model with the Coralogix CLI and the same instructions, and differed only in what they knew about the datasets. We checked every answer against a value computed from raw telemetry and replied No to each wrong one, with no hint. Each agent kept going until it was right, gave up or reached 45 minutes.

Raw telemetry only

### No Dataset

Raw logs and spans.

Told how to look

### Discover Datasets

Told that datasets may exist, and given `cx datasets list` to see them with their descriptions. No names, no fields.

Told what exists

### Datasets in system prompt

A catalog of all 12 datasets, with every field, in its system prompt.

**25 questions in each tier, across gaming, ecommerce, finance, platform operations and AI assistants**

| Tier | Kind of question | Example |
|---|---|---|
| Tier 1 | Lookups A single filtered total or count | What was the total value of jackpot wins paid out by GoldSpin Play between 30 October and 6 November 2026, in GBP? |
| Tier 2 | Rankings Group, rank and pick the top | At which step do Coralogix Store shoppers abandon the most baskets between 30 October and 6 November 2026, and what percentage of all abandoned baskets does that step account for? |
| Tier 3 | Multi-step analysis Ratios, rates and definitions to apply | What was Coralogix Finance's gross margin on research queries between 30 October and 6 November 2026, defined as (query revenue billed - credits refunded - inference costs - market-data costs) / query revenue billed? Give it as a percentage. |
| Tier 4 | Investigations Several signals, several answers | GoldSpin Play's bet placement feels slow. Using spans between 30 October and 6 November 2026: what was the p95 latency in milliseconds of the server-side PlaceBet operation in bet-service, which downstream call made by bet-service (client span operation) had the highest p95 latency, and what was that call's p95 in milliseconds? |

## Findings

## Datasets cut token use by 61% to 86%.

Agents limited to raw telemetry used a median of 798,000 tokens per question, against 108,000 with the dataset catalog in their system prompt. Agents that found the datasets for themselves used 313,000, a 61% cut.

## Agents found the datasets on their own.

Told only how to list datasets, agents listed them within their first three commands in 97% of sessions and started with the dataset we expected for the question 95% of the time. Without field names, they read a few rows of a dataset before querying it in 93% of sessions, against 51% for agents with the catalog, and went back to raw telemetry in 54%, against 31%.

## Consistent reduction in tokens, tool calls and time

At every tier, from lookups to investigations, both agents with datasets used fewer tokens, fewer tool calls and less time than the agent limited to raw telemetry. With the catalog in the system prompt, tokens fell by 56% to 90%, tool calls by 47% to 84% and time by 39% to 81%. Investigations saw the smallest cuts, because many needed trace-level detail, such as which downstream call slowed a request, that an hourly rollup doesn’t hold.

## Answers arrived in under a third of the time.

The median question took 10 minutes with raw telemetry alone, 6 minutes with discovery and under 3 minutes with the catalog in the system prompt. Tool calls fell in step, from 43 to 23 to 9.

## Agents with datasets solved more questions.

Every agent solved at least 930 of its 940 question runs. Sessions that hit the 45-minute limit fell from 10 with raw telemetry alone to 2 with discovery and 1 with the catalog.

## Methods and results

What we measured and how to read the results.

### Summary results

The median is the middle result across 940 question runs per agent. Changes compare each agent’s median with the agent limited to raw telemetry. The 95% intervals are for the ratio of total tokens over paired runs.

Medians per question run: 940 runs per agent

| Measure | No Dataset | Discover Datasets | Datasets in system prompt |
|---|---|---|---|
| Tokens | 797,548 | 312,615 (−61%) | 107,790 (−86%) |
| Output tokens | 3,519 | 1,663 (−53%) | 810 (−77%) |
| Time to answer (seconds) | 599 | 347 (−42%) | 169 (−72%) |
| Model calls | 32 | 18 (−44%) | 9 (−72%) |
| Tool calls | 43 | 23 (−47%) | 9 (−79%) |
| Queries run | 33 | 16 (−52%) | 7 (−79%) |
| Queries with errors | 6 | 5 (−17%) | 3 (−50%) |
| Solved | 930 | 938 | 939 |
| Solved first time | 922 | 937 | 929 |
| Reached 45 minutes | 10 | 2 | 1 |
| Wrong answers given | 12 | 1 | 10 |
| Discover Datasets, total tokens against No Dataset | 0.45 (95% interval 0.41 to 0.49) |  |  |
| Datasets in system prompt, total tokens against No Dataset | 0.27 (95% interval 0.24 to 0.31) |  |  |

### How we graded answers

We computed every expected answer from raw logs and spans, never from the datasets. An answer passed when it named the right entity and every number fell within 0.5% for money and counts, or 1% for percentages and averages.

A wrong answer got the reply No, with no hint. An agent could try again, give up, or keep working until it reached 45 minutes or eight wrong answers.

### How we measured token use

Tokens are the input, output and reasoning tokens the model service reported for every model call in a session, including context repeated in later calls. The service reported no cached tokens. Each agent ran in its own isolated session with no memory of earlier runs.

For the 95% intervals, we resampled the 940 paired question runs 4,000 times and took the ratio of total tokens each time.

## Run it yourself

About 1.85 billion tokens a run

The telemetry replay, the dataset builder, the agent harness and the scoring behind this page are on GitHub. You need a Coralogix account and an endpoint that serves GLM 5.3.

```
git clone https://github.com/coralogix/benchmark-run-yourself
cd benchmark-run-yourself/datasets-and-tokenomics
```

[Open the guide on GitHub](https://github.com/coralogix/benchmark-run-yourself/tree/main/datasets-and-tokenomics)
