r/LangChain • u/Effective-Math-1765 • 1h ago
Projects Built an agent that ties out W-2s, 1099s and returns locally, every number cites its page (LangGraph + Ollama, open source)
Video: UniDocVerse doing tax-season work for a CPA, all live, all local on a Mac.
What the agents do in the video:
- Voice: "Hey Bomma, find my W-2 from Acme Robotics" → wages $118,400, federal withheld $17,760
- Ask AI across a whole client library → finds the 1099-NEC, $48,000
- Research agent compares Q2/Q3/Q4 sales-tax returns with page citations
- W-2 analytics: Form 1040 filing map + action items, generated from the document
- Watch folder: drop a 1099-INT in, it's classified and processed with no upload step
How it's built:
- LangGraph supervisor → specialist agents (classify, extract, research, rules), hard step budget per run
- Vision model reads form boxes; a value is kept only if it also appears in the page text
- Hybrid BM25 + pgvector + reranker; answers are refused if a cited number isn't on the cited page
- Everything runs on Ollama locally; cloud models (Claude/OpenAI/Gemini) are opt-in with PII masking
What surprised me: superlative questions ("which return had the highest sales?") fail with top-k retrieval, so the agent now reads every document of that type before answering.
Free and open source: unidocverse.com. Happy to go deep on any of it.