S-01 · CASE STUDY
Research agent workflows
Multi-step LLM agent workflows that research a domain, retrieve supporting evidence, validate outputs against schemas and persist every run.
Bull AI · Sep 2025 to now / Software Engineer, AI & Data Platforms
LangGraph, Vector DB, PostgreSQL, Gemini, OpenAI, Python
TL;DR
LangGraph research workflows for Indian equities that retrieve evidence, validate every output against a schema and keep a full run history.
The problem
Equity research means reading market data, filings and annual reports for many companies and turning them into analysis people can act on. Doing it by hand does not scale, and a free-form LLM answer cannot be trusted or audited.
What I built
- 01LangGraph workflows for Indian equities covering market analysis, financial projections and annual-report processing.
- 02Each run plans, retrieves evidence from a document corpus, analyses, synthesises and validates before anything is saved.
- 03Persistent state and run history, designed so a result can be traced back to the inputs and prompt versions that produced it.
- 04Clients for several LLM providers behind one interface.
How it works
Architecture
- plan · 01
- retrieve · 02
- analyse · 03
- synthesise · 04
- validate · schema
- persist · 06
with: Prompt registry · Run store · Vector store · LLM providers
Decisions that mattered
Schema first
Every model output is parsed against a schema. A run that fails validation is rejected instead of being passed downstream.
Grounded in sources
Claims are tied to retrieved sources, so an analyst can check where a statement came from.
Benchmark the providers
Providers are compared on the same tasks, and point-in-time backtesting checks projections against what happened later.
Version the prompts
Prompts are versioned like code, so a change in output can be tied to a change in prompt.
Proprietary work. The approach and architecture are described; client data and code are not shown.