Skip to content
All systems

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.

3workflow familiesmarket analysis, projections and annual reports
01

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.

02

What I built

  1. 01LangGraph workflows for Indian equities covering market analysis, financial projections and annual-report processing.
  2. 02Each run plans, retrieves evidence from a document corpus, analyses, synthesises and validates before anything is saved.
  3. 03Persistent state and run history, designed so a result can be traced back to the inputs and prompt versions that produced it.
  4. 04Clients for several LLM providers behind one interface.
03

How it works

planretrieveanalysesynthesisevalidateschemapersistrun storerun log
04

Architecture

  1. plan · 01
  2. retrieve · 02
  3. analyse · 03
  4. synthesise · 04
  5. validate · schema
  6. persist · 06

with: Prompt registry · Run store · Vector store · LLM providers

05

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.