Urgent.News

What's breaking now, across thousands of outlets.

Tech

Beyond Black-Box Prompts: Building an Explainable Multi-Agent Financial Intelligence Platform with FastAPI & React

In quantitative finance and retail investing, treating Large Language Models as a single "oracle" prompt is dangerous. When you ask a single LLM whether a stock is a buy, it frequently exhibits confirmation bias, hallucinations with financial figures, and a total lack of calibrated risk management. Real-world institutional investment committees don't rely on a single analyst. They rely on…

Quantitative finance and retail investing are increasingly turning to Large Language Models (LLMs) as a sort of all-knowing oracle for stock recommendations. However, relying on a single LLM can be problematic. Such models often show confirmation bias, insert financial figures without verification, and lack proper risk management. In the world of actual investment committees, there isn't a single go-to analyst. Instead, there are specialized, competing experts.

In response to these issues, I created a platform named Vibe-Finance. Vibe-Finance is a comprehensive, end-to-end multi-agent financial intelligence and explainability system. The platform is built using a Python/FastAPI backend, a vector Retrieval Augmented Generation (RAG) over corporate filings, and a modern React/Vite/Tailwind client.

The system architecture separates data ingestion, analysis, adversarial cross-examination, and synthesis into distinct layers. This design prevents putting all data through one large prompt. Instead, it breaks down the process into dedicated layers for easier handling and understanding.

The platform features three main agents:

1. The Quantitative Agent, which uses hard mathematical indicators like Wilder's RSI-14, MACD, and EMA/SMA to analyze stock movements.

2. The Fundamental RAG Agent, which parses regulatory corporate filings like SEC 10-Ks, 10-Qs, and earnings conference transcripts using vector embeddings. It ensures zero cross-contamination between unrelated equities and provides citations for users to verify claims.

3. The Behavioral Risk Manager, which safeguards the investor against risk-taking behaviors. It assesses the user's risk profile (Conservative, Moderate, or Aggressive), maximum historical drawdown caps, high-beta concentration limits, and provides pre-trade what-if nudges if an order threatens portfolio balance.

Critical to the system is the Adversarial Debate Engine, which handles conflict resolution when different agents present opposing views. For instance, if the Quant Agent sees a bullish breakout signal but the Fundamental RAG Agent detects margin compression in recent filings, the Debate Engine detects agent friction and runs a structured adversarial exchange to calibrate the overall decision confidence.

Finally, the platform provides an interactive TradingView client for visualization and telemetry. It uses TradingView Lightweight Charts for technical analysis and displays model latency, regulatory chunk counts, and token consumption for transparency. The platform also undergoes strict testing with an automated test suite verifying 21 critical scenarios.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I Told My Agent Who Sent the Message. It Mostly Stopped Saying We Were Talking.

This is the line: AUTOMATED SCHEDULER CHECK: sender=scheduler, not Keniel; Keniel is not participating in this turn. I added it to a frozen copy of my agent's scheduled self-audit request.

  • Agent incorrectly claimed conversation while human not participating
  • Corrected sender line improved accuracy, p-value 0.0000002
  • Advice to check sender info in scheduled messages

Why a Video Link Shouldn't Always Return a Video

A URL looks like a simple input. But when it points to a social post, the content behind it may be anything but simple. One post might contain a video.

  • A URL's content can vary from video to text
  • Parsing should model post content, not just video presence
  • Platform-specific adapters isolate URL handling complexities

ERR_PNPM_OUTDATED_LOCKFILE in GitHub Actions

ERR_PNPM_OUTDATED_LOCKFILE in GitHub Actions means pnpm ran a frozen install, compared pnpm-lock.yaml against every package.json it can see, and found a difference it is not allowed to write away.

More from Sunday 15 November →