← all repositories
run-llama/sec-insights

Turning RAG prototypes into production-grade document chat

A complete, working full-stack RAG application built to replace toy demos when moving LlamaIndex projects to production.

2.6k stars TypeScript RAG · Search
sec-insights
Not currently ranked — collecting fresh signals.
star history

What it does SEC Insights is a chat application that uses LlamaIndex to answer questions across SEC 10-K and 10-Q filings. It surfaces exact citations, highlights them in a built-in PDF viewer, and can pull quantitative data via external APIs like Polygon.io. The stack is explicitly designed as a reference implementation for developers moving RAG from prototype to production.

The interesting bit The project treats infrastructure as a first-class feature: it ships with IaC configs for Vercel and Render, local dev via LocalStack and Docker, and observability hooks for Sentry and Arize Phoenix. That is the unglamorous work most demo projects skip, and it is exactly why this one is useful.

Key highlights

  • Chat with document pools, with streamed token responses and reasoning steps via Server-Sent Events.
  • Citations are linked directly to a built-in PDF viewer that highlights the source passages.
  • Quantitative questions tap Polygon.io instead of relying solely on the model.
  • Backend uses FastAPI, PGVector, and OpenAI embeddings; frontend is Next.js and Tailwind.
  • Includes monitoring, load-testing, and LLM observability integrations out of the box.

Caveats

  • The frontend does not support mobile devices.
  • The authors note there is still room for improvement in RAG performance; it is a foundation, not a finished product.

Verdict Grab this if you are building a document-Q&A product and need a sane architectural starting point. Skip it if you are looking for a drop-in, fully optimized solution or a mobile-first interface.

Frequently asked

What is run-llama/sec-insights?
A complete, working full-stack RAG application built to replace toy demos when moving LlamaIndex projects to production.
Is sec-insights open source?
Yes — run-llama/sec-insights is open source, released under the MIT license.
What language is sec-insights written in?
run-llama/sec-insights is primarily written in TypeScript.
How popular is sec-insights?
run-llama/sec-insights has 2.6k stars on GitHub.
Where can I find sec-insights?
run-llama/sec-insights is on GitHub at https://github.com/run-llama/sec-insights.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.