DSPy Multi Document Agents — Development skill for Claude Code
An advanced distributed knowledge fabric for intelligent document processing, featuring multi-document agents, optimized query handling, and semantic understanding.
How to install DSPy Multi Document Agents
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jmanhype/DSPy-Multi-Document-Agents and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What DSPy Multi Document Agents does
An advanced distributed knowledge fabric for intelligent document processing, featuring multi-document agents, optimized query handling, and semantic understanding.
Alternatives in Development
- Connect — Fancy stream processing made operationally mundane 8608 114 1 8.6k ★
- Hermes Agent Self Evolution — ⚒ Evolutionary self-improvement for Hermes Agent — optimize skills, prompts, and code using DSPy + GEPA 5.2k ★
- Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
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
Yaad Memory Fabric
Yaad Memory Fabric — NVIDIA-powered knowledge/memory layer for the Open Agent Hackathon 2026 (Tinkerer Track).
Agentcontrolplane
ACP is the Agent Control Plane - a distributed agent scheduler optimized for simplicity, clarity, and control.
Claude Autopilot
VS Code/Cursor extension for automating Claude Code tasks with intelligent queuing, batch processing, and auto
Sc Build
Build, compile, and package projects with intelligent error handling and optimization
GraphQL
Build version-safe Shopify Admin GraphQL queries and mutations, optimize query cost, and implement error handl
Legal Toolkit
A Claude Code plugin with 31 legal productivity skills -- document processing, criminal defense workflows, fir
Related Agents
De Spark Expert
Expert Apache Spark developer for PySpark and Scala distributed data processing. Use for Spark jobs (.py, .sca
Email Scanner
Scans email inbox and extracts tasks with intelligent understanding
Context Restore
Expert Context Restoration Specialist focused on intelligent, semantic-aware context retrieval and r... - wsho