← Latest papers
🤖 AI

Discovery Agents for Real-Time Analytics: Toward Proactive Insight Systems

This paper presents a multi-agent architecture that leverages large language models, Apache Kafka, and Apache Flink to autonomously discover, validate, and visualize insights from real-time data streams, shifting analytics from reactive querying to proactive discovery through a contract-driven design.

Original authors: Gaetano Rossiello, Dharmashankar Subramanian

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

Original authors: Gaetano Rossiello, Dharmashankar Subramanian

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 are the manager of a massive, bustling newsroom that never sleeps. Every second, thousands of new stories (data) are pouring in from around the world. In the old days, you would have to sit at your desk, read the papers, and manually decide, "Okay, I want to write a story about how many people visited the park on Tuesdays." You would then assign a reporter to go find that specific number.

The problem is that in a real-time world, there are too many stories to think of, and by the time you ask for one, the news has already changed. You might miss the big story because you didn't know to ask for it.

This paper introduces a new way of running that newsroom. Instead of waiting for you to ask for stories, the newsroom hires a team of AI detectives who work 24/7 to find the stories for you, write them, fact-check them, and even build a TV show about them.

Here is how this "Discovery Agent" system works, broken down into simple steps:

1. The Team of Specialized Detectives (The Agents)

Instead of one giant AI trying to do everything, the system uses a team of specialized agents, each with a specific job. They pass a "folder" of work down the line, like a relay race.

  • The Idea Generator: This agent looks at the raw data (like a pile of unsorted receipts) and asks, "Hey, what's interesting here?" It doesn't just guess; it looks at the data's shape and suggests questions like, "Do park events happen more in the summer?" or "Are free events more popular in Brooklyn?"
  • The Architect (Data Analyst): Once the Idea Generator has a question, the Architect turns it into a plan. They decide how to calculate the answer. They write the instructions in two languages: one for doing a quick one-time check (Python) and one for watching the data stream live (FlinkSQL).
  • The Inspector (Verification Agent): Before anyone sees the work, the Inspector checks it. Did the Architect make a math error? Is the code broken? Is the plan safe? If the plan fails, the Inspector sends it back to the Architect to fix it. This ensures the final result is trustworthy.
  • The Designer (Visualization Agent): Once the math is done, the Designer looks at the numbers and says, "This looks like a bar chart," or "This is a trend line." They automatically create a visual dashboard so humans can easily understand the findings.
  • The Builder (Deploy Agent): Finally, the Builder takes the code, the charts, and the plan, and packs them into a ready-to-use app. It's like handing you a finished TV episode that you can just press "play" on.

2. The "Contract" System

The most important part of this system is how the agents talk to each other. They don't just shout vague instructions. They use typed contracts.

Think of it like a strict delivery service.

  • The Idea Generator doesn't just say, "Here's a thought." They hand over a specific, labeled box called a Hypothesis.
  • The Architect takes that box and returns a Plan.
  • The Inspector returns a Report.

Because every box is labeled and has a specific format, the system knows exactly where every piece of information came from. If you look at a chart on the screen, you can trace it all the way back to the original question and the code that calculated it. This makes the whole process transparent and safe.

3. Real-World Examples

The paper tested this system in three different "newsrooms":

  • Retail: The system looked at store sales data and automatically found patterns, like "People buy more umbrellas when it rains on Tuesdays," and built a dashboard to show it.
  • Finance: It watched money moving in and out and flagged weird spikes or unusual activity without a human needing to tell it what to look for.
  • Public Data (NYC Parks): The system analyzed a dataset of park events. It automatically discovered that events are concentrated in summer, mostly on weekends, and that most are free. It then built a full website showing these facts.

The Big Takeaway

The main point of the paper is a shift in how we use data.

  • Old Way: You ask a question, and the computer answers. (Reactive)
  • New Way: The computer looks at the data, finds the interesting questions itself, answers them, and shows you the results. (Proactive)

The authors argue that because data changes so fast, we can't keep up by asking questions manually. We need a system that acts like a proactive partner, constantly scanning the horizon for insights, checking its own work, and delivering ready-made applications so humans can focus on making decisions rather than writing code.

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 →