<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif"> Skip to Navigation Skip to Main Content Skip to Footer
INSIGHTS AUGUST 25, 2026

How Does Agentic Chat Deliver Reliable Answers in eDiscovery?

How Does Agentic Chat Deliver Reliable Answers in eDiscovery?

Agentic Chat is the conversational capability of Nebula AI Case Explorer™, which runs within KLDiscovery's AI-powered eDiscovery platform, Nebula. It surpasses a standard chatbot for one core reason: it separates a decision from its execution, two functions most chat systems merge. First, a large language model (LLM) interprets the user's question and translates it into a query plan. The retrieval itself, however, is executed by deterministic database queries and, where completeness is crucial, a pipeline that reviews documents individually. The answer a legal team sees is therefore grounded in an exact, inspectable result set rather than in whatever text happened to fit into the model's context window. Think of a legal team asking an experienced law librarian for every filing that mentions a particular clause. The librarian's skill is turning a loosely worded request into a precise search, but the librarian does not answer from memory. The records system runs the search and returns every matching document. Agentic Chat works the same way: the LLM plays the librarian, translating the question into a precise plan, while a deterministic system pulls the actual records. The answer is not a well-informed guess; it is something you can point to and verify. This article explains the architecture behind that design and where the LLM should be trusted and where it should not. 

A quick definition helps here. A process is deterministic if the same input always produces the same output. A database query is deterministic: run the same search over the same documents and you get the same result set every time. An LLM is non-deterministic: ask it the same question twice and you may get two different answers. This is largely by design, because LLMs work by choosing among likely next words rather than following a fixed rule. Even with that randomness turned down, identical outputs are still not guaranteed in practice. 

Key Takeaways

  • Standard retrieval augmented generation (RAG) chat, used by many AI chat systems in the legal industry, retrieves a small sample of the most similar text passages. It is built to rank by relevance, so it cannot answer "find all documents that..." questions, which are the questions litigators actually ask. 

  • In the agentic design, the LLM composes the query, but a deterministic engine executes it. Once a filter is fixed, the same filter returns the same documents every time. 

  • Every intermediate step produces a visible result set with a document count, so lawyers can verify the path the system took, not just the final answer. 

  • Nebula and Nebula AI Case Explorer are vertically integrated: document metadata and AI generated labels are shared between the platforms. At the same time, it works seamlessly across platforms, including Relativity Server and One.   

Why is a standard RAG chatbot not enough for legal document review?

Legal questions demand completeness, but standard RAG is built to return the closest matches, not every matching instance. A fixed RAG pipeline embeds the user's question, retrieves the most similar text passages from a search index, and asks the LLM to generate an answer from those passages. This approach works well for questions like "what does this contract say about termination?" but falls short for requests like "identify all documents related to X's fraudulent activity," which is exactly the kind of request litigators make.

Our initial release used this fixed pipeline/RAG approach, and we hit three hard limits:

  • Retrieval returns a ranked sample of the most similar passages. A relevance ranked sample can never establish completeness; "all" is simply not an operation the pipeline supports.

  • Every retrieved result must pass through the LLM's context window, which becomes impractical when the true answer spans hundreds or thousands of documents.

  • Many requests, such as "all emails between two custodians in a given quarter," do not need semantic search at all. They are metadata filters. A fixed pipeline runs an embedding search anyway and returns an approximation of something a traditional search could already do.

In the end, this approach limited the quality, completeness, and reliability of the answers we could give. It was a good initial release, but not a system a legal team could depend on.

A single pass pipeline also cannot recover from a wrong first guess. Legal questions are compositional: filter, then narrow, then evaluate. That requires orchestration, not a fixed sequence.

Figure 1: Simple RAG Chat 
Figure 1: Simple RAG Chat

 

What is the technical approach behind Agentic Chat?

We built Agentic Chat as a custom harness around an LLM. Our harness exposes data and tools to the LLM, which then chooses the best path to respond to a user's request. For specific actions, the harness can invoke specialist agents, each with its own instructions for particular tools:

  • Retrieval Specialist: Builds metadata filters, keyword searches, and semantic searches. Its output is a composed query object, not documents. The query executes against the database and returns a link to the result set, keeping the documents themselves out of the context window. This result set also serves as the starting point for other techniques: by narrowing millions of documents down to a targeted subset first, it makes downstream approaches, such as per-document review, tractable.

  • Reviewer Assistant: Handles questions that RAG cannot answer: criteria that no filter can express and that require reading every document, such as "which of these discuss pricing disputes?" The agent converts the request into a prompt and initiates a parallelized, per-document, structured LLM evaluation. The results populate a results table that can be combined with additional filters or saved for further human review.

Result handles are the key mechanism. Document content can be kept out of the LLM's context window when it is not needed, and because handles persist across turns, the model can continue refining the filters. Consider an illustrative session on the public Electronic Discovery Reference Model (EDRM) Enron corpus, with counts shown for concreteness rather than as measured results: "find all emails from Ken Lay in 2001" returns a handle with 8,000 documents; "narrow to Q4" produces a new handle with 2,200; "which of those discuss revenue?" triggers the Reviewer Assistant and yields 140. Each step builds on the previous result handle. The user never restates prior criteria, and each handle is an exact, re-runnable query result. For the legal team, this means they can filter down, inspect the results, and broaden back out without losing their place. Same question, same data, same documents, every time. Defensible, not just plausible.

Agentic Chat - Agentic Chat Diagram
Figure 2: Agentic Chat Solution

 

How do we balance deterministic and non-deterministic behavior?

Our design principle: the LLM decides what to do; deterministic systems carry it out. The LLM is invoked to interpret intent, select tools, compose filters, and generate a narrative answer. Nebula executes queries, performs joins and counts, stores results, and enforces permission scoping. In our view, this split is the single biggest driver of reliability, because it shifts the focus from "trust the model's answer" to "verify the model's query."

A precise way to state it: results are query complete, meaning every document matching the executed filter is returned, but not automatically intent complete, because the filter is the LLM's interpretation of the request. Decision transparency exists so users can close that gap themselves:

  • Any filters or searches the LLM constructs can be inspected, so users can verify exactly what was queried and replicate the results themselves, if desired.

  • The results of the queries are presented in the user interface as an interactive document table, allowing a user to inspect each intermediate result set, not just the final response.

  • Running the Reviewer Assistant on a set above the document count threshold requires explicit user confirmation before starting, keeping cost and time under the user's control.

  • The Reviewer Assistant uses structured output (classification, multi-label, extraction, or summary), so every evaluation returns filterable results with reasoning.

This is about trust through transparency. You are not asked to take the system's word for anything: you can see the exact filters that ran, check them against what you meant, and correct them if the interpretation missed. What comes back is never a black-box answer; it is a result you can inspect, verify, and stand behind.

One limitation to acknowledge is that fully understanding the user's intent is challenging because the LLM may not always interpret how a request aligns with the data’s actual vocabulary. For example, a user asking for "emails from Ken Lay" may expect matches for "Kenneth Lay," "Lay, Kenneth," or "kenneth.lay@enron.com," but the model can only filter on terms it infers from the request. We mitigate this by injecting the case summary, including known aliases and data conventions, into every request, and by surfacing the executed filter so users can review it. Showing the query is worth more than hiding the uncertainty.

What does vertical integration with Nebula add?

Agentic Chat is not a bolt-on chatbot pointed at an export of your data and that distinction is critical, not cosmetic. Every guarantee described above, from query completeness to inspectable intermediate results, holds only because the agent and the review platform are one system. Nebula AI Case Explorer and Nebula are integrated views of the same platform, in both directions. That is an architecture, not a feature, and it cannot be reproduced by wiring a chat frontend onto a copy of the data:

  • Shared metadata. Document metadata and AI generated labels, such as key people, themes, key documents, and review status, are shared between Nebula and Nebula AI Case Explorer and are filterable by the agent. No sync pipeline is needed to copy data between the two.

  • Shared search architecture. The agent runs its queries against the same search index that powers Nebula, so results match what a reviewer sees in the review workflow. There is no separate index to build, refresh, or reconcile. Queries are also scoped to the document set selected for the AI Case Explorer project, not the full Nebula matter, so answers only ever draw from the documents the team put in scope.

  • Shared results. Result sets generated in Nebula AI Case Explorer are also shared with Nebula, so a document set surfaced through chat can become a working set in the review workflow rather than a screenshot in an email.

  • Security inheritance. Every agent session already carries the user's permission level and matter context. Tool state is isolated per session and per matter. We rejected external managed agent platforms because each additional system that persists data adds risk.

  • Context advantage. The case summary generated within the platform is included in every LLM call, ensuring the agent always has context on the specific matter. 

FAQ

Can the system hallucinate documents that do not exist?

Not in the document lists, those come directly from database queries executed by the harness, and the LLM never generates them. However, two narrower risks remain: the model can produce a filter that misses or over includes documents, and the narrative the agent writes around the results is LLM generated and can mischaracterize a document. Because of these risks, every claim is anchored to a result set that the user can open and verify. In short: the system can misread your intent, but it cannot fabricate evidence. The first is visible and fixable; fabricating a document in the result list is architecturally impossible.

Three essential questions to ask any eDiscovery AI vendor

If you are evaluating an AI chat capability for eDiscovery, ask these three questions:

  1. Completeness: Does it return every document matching the executed query, or only a ranked sample from a search index? And can you inspect that query to confirm it matches your intent?

  2. Transparency: Can you see the intermediate result sets and the reasoning behind per document determinations?

  3. Data boundary: Does the AI inherit the platform's existing permission and matter isolation model, or does it require copying matter data into a separate system?

If any of those answers are unclear, defending the results when it matters will be difficult. To see how Agentic Chat in Nebula AI Case Explorer addresses all three, visit the Nebula product page or contact the KLDiscovery team for a demo.

Alex Taylor

Director, Data Science
Alex leads KLDiscovery's AI innovation, bringing Generative AI, agentic workflows, and advanced Machine Learning (ML) to the Nebula platform to transform how legal teams work with data. Alex's team is behind the data science powering Nebula AI Case Explorer and Agent Review, with a focus on making sure the answers those tools deliver are accurate and defensible.
Shane Levengood

Director, Software Architecture
Shane leads KLDiscovery's software architecture for the Nebula platform, engineering the systems that let Generative AI and agentic workflows run reliably at production scale. Shane's team is behind the architecture powering Nebula AI Case Explorer and Agent Review, with a focus on making sure those systems hold up under real-world legal workloads.