juanjuandog/FinSight-AI

AI equity research agent with resilient workflows, evidence-grounded RAG, versioned reports, and automated quality evaluation.

What it solves

FinSight AI provides a structured workspace for equity research on A-share companies. It solves the problem of unreliable AI-generated financial reports by ensuring that conclusions are grounded in verifiable evidence, reports are bound to specific data snapshots to prevent staleness, and long-running AI research tasks are recoverable if they fail.

How it works

The system uses a hybrid architecture combining a Spring Boot backend for orchestration and a FastAPI sidecar for AI operations. It employs a hybrid RAG (Retrieval-Augmented Generation) pipeline that combines full-text search and vector recall with reciprocal-rank fusion (RRF) and reranking to provide accurate evidence to the LLM. To ensure reliability, it uses RabbitMQ for task dispatching, Redis for idempotency and coordination, and PostgreSQL/pgvector for storing snapshots and vectors.

Who it’s for

It is designed for financial researchers and developers looking for a reference implementation of reliable AI agents that can handle long-running tasks and evidence-based reporting.

Highlights

  • Recoverable Workflows: Uses a state machine and dead-letter handling to ensure research tasks can be resumed after failure.
  • Snapshot-Bound Reports: Binds reports to specific data versions using hashes to ensure the analysis remains consistent with the source data.
  • Hybrid RAG: Combines vector and full-text search with reranking for high-verifiability evidence retrieval.
  • Idempotency: Prevents expensive duplicate AI requests using Redis Lua leases and fencing tokens.
  • Model Agnostic: Supports Ollama, OpenAI-compatible APIs, and Anthropic via a dedicated AI sidecar.

Related

  • Project
  • Project
  • Project
  • Project
  • Project