Agentic AI System for Document Summarization and Analysis
moveworks · Tech · 2024 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.2 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Enterprise document analysis
Moveworks needed employees to upload documents and ask follow-up questions without manually reading or comparing long files.
Constraints:
- Real-time ingestion
- Long documents
- Grounded answers
- Multi-turn document sessions
- Low latency
Architecture
Moveworks Brief Me is a session-scoped document agent with online ingestion and content generation stages. Users upload PDFs, Word, or PowerPoint files; ingestion fetches, chunks, generates metadata, embeds, and indexes content with P90 latency under 10 seconds; the session locks retrieval to the processed sources; an operation planner chooses SEARCH or READ actions; SEARCH uses BM25, fine-tuned MPNet bi-encoder embeddings, OpenSearch ANN, and dynamic window expansion; READ uses map-reduce over long contexts; citation prediction and heuristics map claims back to paragraph-level chunks.
Diagram confidence: explicit (topology described by the source).
flowchart LR user-document-upload[User document upload] --> online-ingestion-pipeline[Online ingestion pipeline] online-ingestion-pipeline --> session-source-scope[Session source scope] session-source-scope --> operation-planner[Operation planner] operation-planner --> search-executor[Search executor] operation-planner --> read-executor[Read executor] search-executor --> citation-system[Citation system] read-executor --> citation-system citation-system --> generated-answer[Generated answer] generated-answer --> evaluation-framework[Evaluation framework]
Components
| Component | Role | Interacts with |
|---|---|---|
User document upload |
PDF, DOCX, PPT, or source input brought into Copilot. | Online ingestion pipeline |
Online ingestion pipeline |
Fetches, chunks, enriches metadata, embeds, and indexes sources. | User document upload, Session source scope |
Session source scope |
Focused mode where only processed sources are queryable until session close. | Online ingestion pipeline, Operation planner |
Operation planner |
Predicts SEARCH or READ actions and parameters with ICL/SFT. | Session source scope, Search executor, Read executor |
Search executor |
BM25, MPNet embeddings, OpenSearch ANN, and dynamic context lookup for targeted questions. | Operation planner, Citation system |
Read executor |
Map-reduce processing for whole-document understanding and summarization. | Operation planner, Citation system |
Citation system |
Model and heuristic attribution to sparse, complete paragraph-level citations. | Search executor, Read executor, Generated answer |
Generated answer |
Grounded summary, comparison, Q&A, or analysis returned to the user. | Citation system |
Evaluation framework |
Human and LLM-grader evaluation of turns and sessions. | Generated answer |
Data flow
A user uploads documents into chat. Brief Me ingests, chunks, embeds, indexes, and session-scopes the sources; subsequent queries enter the operation planner; SEARCH retrieves precise snippets with keyword and embedding search while READ processes full documents through split/map/reduce; generation returns grounded answers with sparse paragraph-level citations.
3 supporting quotes
Why this architecture
Brief Me separates ingestion, planning, search, read, and citation because document questions need different retrieval modes. Snippet search works for targeted questions, full-document READ is needed for summaries, map-reduce mitigates long-context degradation, and paragraph citations make generated claims auditable.
3 supporting quotes
Models used: MPNet bi-encoder · LLMs
Scale
- Ingestion is designed for P90 latency under 10 seconds.“The ingestion pipeline is designed to have a P90 latency of <10 seconds which can help ensure users don't wait too long for their files to be processed.”article, stated
- Evaluation used 2,200 query-response pairs from real usage data.“### Dataset The evaluation was conducted on a set of 2,200 query-response pairs based on real usage data. The uploaded sources came from a variety of domains, including research papers, financial reports, security documents, HR policies, competitive intelligence, sales pitches, and more.”article, stated
Alternatives considered (roads not taken)
Always solve document questions with search/RAG
Rejected because: Summaries may require reading the entire document rather than retrieving snippets.
Use document-level citations only
Rejected because: Brief Me needs citations tied to specific paragraphs that substantiate each claim.
Patterns
rag-retrieval (document-analysis)
Uploaded sources are ingested and made available as session-scoped context for user queries.
hybrid-search (retrieval)
The summary reports hybrid search with custom-trained embeddings.
prompt-chaining (reasoning)
The agentic pipeline plans operations before generating document-analysis responses.
Tradeoffs
Route questions to SEARCH or READ instead of using one retrieval path for all document tasks.
Chose An operation planner with SEARCH for targeted snippets and READ for whole-document understanding over Always searching for snippets even when a summary requires comprehensive reading.
Rationale: Some summarization tasks are counterproductive to solve with search because skipping sections can make the summary incomplete.
How to handle long document summaries.
Chose map-reduce READ path over single long-context prompt or snippet search.
Rationale: Long contexts degrade and may exceed limits, while search can miss sections required for comprehensive summaries.
Gotchas (what bit them)
Long-context LLMs still struggled to use information buried in the middle of lengthy documents.
Root cause: Relevant information in the middle of long contexts is harder for current models to use, and long inputs add latency and context-limit risk.
Resolution: Moveworks used a map-reduce algorithm with split, map, and reduce stages for lengthy READ operations.
Citations had to be sparse, complete, and paragraph-grounded rather than document-level labels.
Root cause: Existing citation approaches often omitted relevant attribution or linked claims to overly broad document-level sources.
Resolution: Brief Me combined model-predicted citation IDs with collators, dedupers, and referencers to link output claims to specific paragraphs.
Evaluation
Moveworks measured action correctness, groundedness, completeness, and ingestion latency.
Metrics: correct action rate · groundedness · completeness · P90 latency
Outcomes
- The system reports high correctness and P90 ingestion latency under 10 seconds.
The feature reduces hours of document analysis work.