Back to Portfolio Enterprise Demo
Case Study

CompanyIQ

An enterprise-grade AI-powered investment research platform designed to automate deep equity research, score assets mathematically, and justify recommendations with full explainability.

Role Lead Architect & Dev
Timeline 2026
Orchestration AI Agent Engine
Next.js 16TypeScriptTailwindCSS v4 LangGraph.jsGemini 2.5 FlashPrismaPostgreSQL

What is CompanyIQ?

CompanyIQ is an AI-native SaaS platform modeled after premium, minimalist interfaces like Perplexity, Stripe, and Linear. It helps analysts automate the heavy lifting of equity research by pulling live data from market endpoints, evaluating it via a locked mathematical scoring model, and structuring the output with an explainable AI synthesis node.

By splitting Fact Retrieval from AI opinion generation, CompanyIQ guarantees that recommendations are anchored to actual data, shielding users from LLM hallucination risks.

The Hallucination & Trust Gap in AI Finance

Traditional AI investment agents typically generate qualitative narratives without verified quantitative backing. Standard LLMs struggle with basic financial calculations and often make up numbers when scanning PDFs or web scrapers. This makes their summaries useless for institutional compliance.

Hallucinated Metrics

Standard LLMs frequently make mistakes with simple arithmetic and financial statement numbers (e.g. debt ratios).

Unjustified Ratings

Black-box LLMs provide bullish or bearish verdicts without an audit trail of how they arrived at that conclusion.

Static Snapshots

Financial reports represent single snapshots in time and fail to explain changes or shifts in score ratios over time.

Complex API Latency

Fetching multi-source datasets (Yahoo, news feeds, search indexes) causes page timeouts on traditional REST API models.

LangGraph Workflow

CompanyIQ handles complex orchestrations by utilizing a multi-stage LangGraph workflow. Raw financial extraction is separated from opinion generation, producing a reliable process flow:

LangGraph Agent Orchestrator Idle
Fact Retriever Pending
Analyst Agent Pending
Writer Agent Pending
System idle. Pipeline diagnostics ready.

Deterministic Scoring Engine

Rather than letting the LLM estimate the stock score, CompanyIQ calculates a mathematically locked index using specific weights:

Financial Health (30%)
Cash/debt ratios, net margins, leverage
Growth Metrics (25%)
YoY top-line revenue & trailing EPS
Competitive Moat (15%)
Margin deviations vs sector baseline
Valuation & News (20%)
P/E, PEG metrics, and media coverage sentiment

Enterprise Trust Features

Decision Provenance Grid

Maps every AI thesis assertion back to a reliability trace (High, Medium, Low), specifying the exact sentence source and audit context.

Delta Change Logs

Before running the agent, CompanyIQ queries PostgreSQL for the company's previous report, automatically generating an objective verdict change log detailing rating changes.

Hidden Diagnostics Drawer (Ctrl + Shift + I)

A hidden engineering console displays active LangGraph variables, latency telemetry, API request costs, and the state graph traversal sequence in real time.

Highlights & Performance Optimizations