Skip to content
All systems

S-04 · CASE STUDY

Conversational assistant

A domain-focused assistant that grounds answers in documents and live data and streams responses to the client.

Bull AI · Sep 2025 to now / Software Engineer, AI & Data Platforms

FastAPI, React, LangChain, Vector DB, Gemini

TL;DR

The streaming backend of a financial copilot that answers company questions from documents and data, used by 9K+ active users.

9K+active usersthrough the company website chatbot
01

The problem

Visitors to the company website wanted quick answers about Indian companies (what a company does, how its numbers look, what its documents say) in a chat, not in a research report.

02

What I built

  1. 01The backend of an India-focused financial copilot: company lookup, financial snapshots, document Q&A and chart-ready answers.
  2. 02A FastAPI service that streams answers to the client over server-sent events.
  3. 03Retrieval over company documents with vector search, with data in MongoDB.
  4. 04Integration into the company website chatbot.
03

How it works

retrieved passagesFastAPISSEcompany chatbotWhat drove revenue last quarter?Revenue split by segment, with sources:sources: 2 passages
04

Architecture

  1. resolve · 01
  2. lookup · 02
  3. rag · 03
  4. answer · chart-ready
  5. stream · 05

with: Client app · Vector store · LLM

05

Decisions that mattered

Stream everything

Answers stream over SSE, so a response starts to appear immediately instead of after the whole answer is ready.

Answer in structure

Responses can carry chart-ready data, so the front end draws a chart instead of describing numbers in prose.

Ground in documents

Document questions are answered from retrieved passages, not from the model's memory.

Proprietary work. The approach and architecture are described; client data and code are not shown.