Overview
okra chat with --doc or -c runs a lead agent that queries multiple documents simultaneously. Pass comma-separated job IDs or use a collection.
Basic: compare two documents
- Query each document for revenue data
- Synthesize a side-by-side comparison
- Return a unified answer with citations
Compare 3+ documents from your recent jobs
Use a collection
Collections group related documents (e.g., all quarterly reports for one company).Targeted questions
The agent is most effective with specific questions:How it works under the hood
When you pass multiple documents,okra chat sends a request to the orchestrator endpoint which:
- Starts a lead agent (Kimi K2.5) with a
query_documenttool - Fans out questions to each DocumentAgent DO’s
/completionendpoint - Collects results from each document
- Synthesizes findings into a unified answer