Skip to main content
The information_analysis tool is a powerful engine for deep-dive research, synthesis, and content transformation. Unlike standard search tools that retrieve snippets, this tool processes documents in their entirety, allowing for comprehensive analysis that bypasses the context window limitations of standard Large Language Models (LLMs). It employs a recursive summarization and synthesis pipeline to digest large volumes of text and produce a cohesive output tailored to a specific user intent.

When to Use This Tool

Use information_analysis when you need to:
  • Synthesize information from multiple large documents (e.g., “Summarize these 5 quarterly reports”).
  • Transform content into a specific format (e.g., “Turn this technical whitepaper into a blog post”).
  • Analyze trends across a dataset (e.g., “What are the common themes in these customer feedback logs?”).
  • Create comprehensive reports that require reading every page of the source material.
Performance NoteBecause this tool processes full document contents rather than just retrieving extracts, it is significantly more computationally intensive than the RAG tool. It may incur higher costs and latency compared to RAG if you are only looking for a precise piece of information within multiple documents.

Input Parameters

The tool accepts the following parameters: *Either document_ids or text must be provided.

Output Structure

The tool returns a structured object containing the synthesized response and metadata about the sources.

Example Usage

Scenario: Creating a Pitch Deck Script

Input:
Result: The tool will process the full content of the whitepaper and competitor analysis, recursively summarizing them while keeping the specific points requested in the intent. The final output will be a coherent script that weaves together technical details and market data, citing the original documents.

How It Works

  1. Dynamic Instruction Generation: The tool first analyzes your intent and the document sample to automatically generate specialized instructions for its sub-agents. This ensures that every step of the summarization is tailored to extract exactly what you’re looking for, making it far more effective than generic summarization.
  2. Chunking: The tool splits the input documents into manageable chunks.
  3. Recursive Summarization: It processes these chunks in parallel waves. Each chunk is summarized based on the custom instructions generated in step 1.
  4. Aggregation: The summaries are combined and summarized again (and again) until they fit within the context window.
  5. Final Synthesis: The final set of concentrated summaries is used to generate the response, ensuring it flows logically and directly addresses your prompt.
Citation BehaviorUnlike rag_search, which cites specific text chunks/passages, information_analysis synthesizes content from multiple parts of a document. Therefore, its citations reference the source document as a whole that supports a particular point, rather than a specific line or paragraph.