DSPy Multi Document Agents
Description
An advanced distributed knowledge fabric for intelligent document processing, featuring multi-document agents, optimized query handling, and semantic understanding.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
DSPy-Multi-Document-Agents
A multi-agent document processing system built with DSPy. Partitions documents into per-document agents that independently evaluate and answer queries, coordinated by a master agent with query planning and reranking.
Architecture
User query
-> QueryPlanner (selects relevant document agents)
-> DocumentAgents (evaluate relevance, extract answers in parallel)
-> RerankModule (reorders results by score)
-> MasterAgent (returns top answer with citations)
Components
| Component | Description |
|---|---|
MasterAgent |
Orchestrates query flow across document agents |
QueryPlanner |
DSPy ChainOfThought module that selects which agents to involve |
DocumentAgent |
Per-document agent that evaluates queries, extracts answers, and generates responses via Claude |
RerankModule |
Reranks initial retrieval scores using Qdrant context |
RerankingOptimizer |
Uses DSPy's BootstrapFewShotWithRandomSearch to optimize reranking |
Dependencies
| Dependency | Purpose |
|---|---|
| DSPy | LLM orchestration and prompt optimization |
| Qdrant | Vector database for document embeddings |
| LlamaIndex | Document loading and vector store indexing |
| sentence-transformers (all-MiniLM-L6-v2) | Query encoding |
| Anthropic Claude (claude-3-haiku) | LLM for query planning, evaluation, answer generation |
| unstructured | Document parsing |
Requirements
- Python >= 3.8
- Running Qdrant instance (default: localhost:6333)
ANTHROPIC_API_KEYenvironment variable
Setup
git clone https://github.com/jmanhype/DSPy-Multi-Document-Agents.git
cd DSPy-Multi-Document-Agents
pip install -r requirements.txt
# Start Qdrant (e.g., via Docker)
docker run -p 6333:6333 qdrant/qdrant
export ANTHROPIC_API_KEY="your-key"
python main.py
By default, `main.py` loads documents from `docs/latest.md` (configurable via `DOCUMENT_PATH` env var).
How queries are processed
- Documents are loaded, partitioned
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11