Offline · SEBI-safe · Deterministic

Financial Intelligence
for Indian Annual Reports

Processing Reports for Intelligence, Metrics & Extraction. An offline-first, SEBI-compliant analysis agent that extracts, structures, and reports financial data with deterministic precision.

Get StartedWatch Demo
$pip install prime-agent
0%
Offline
0+
Financial Ratios
0
Max Pages Parsed
0
Data Sent Externally

Built for Indian Financial Analysis

Every feature designed with SEBI compliance, Ind AS standards, and Indian corporate reporting in mind.

PDF Extraction

Extract text and tables from annual report PDFs using PyMuPDF + pdfplumber with precision.

Structured Financials

Heuristic + LLM-assisted extraction of P&L, balance sheet, and cash flow line items.

Ratio Computation

Automatic calculation of ROE, ROA, D/E, margins, and 20+ financial ratios.

Excel Models

Auto-generated .xlsx workbooks with Inputs, Ratios, and Summary sheets.

SEBI Guardrails

Built-in compliance — refuses buy/sell/hold recommendations, target prices, and portfolio advice.

Offline-First

Runs entirely on your machine. No data leaves your system. Complete air-gap support.

See it in Action

A single command extracts, structures, computes ratios, and generates both a Markdown report and an Excel workbook — all SEBI-compliant, all offline.

Zero data exfiltration — runs 100% local
Sub-minute analysis for 200+ page reports
Docker sandbox for custom analysis scripts
prime — zsh
$

Pipeline Architecture

A modular, deterministic pipeline from PDF input to structured outputs.

PDF Input
Annual Reports
PDF Parser
PyMuPDF + pdfplumber
Financials
Regex → LLM fallback
Ratios
20+ computed metrics
Report
Markdown + SEBI disclaimers
Excel
.xlsx workbook
agent/

Controller, state, guardrails

tools/

PDF, financials, Excel, sandbox

llm/

Ollama client, prompts, skills

skills/

Ind AS, SEBI, user custom

Get Started in 60 Seconds

Three commands. That's all it takes.

quickstart
# Clone & install
$ git clone https://github.com/RahulXDTT/PRIME.git && cd PRIME
$ pip install -e .
# Analyze a PDF
$ prime analyze-pdf annual_report.pdf --company "Infosys" --excel
# Interactive chat (requires Ollama)
$ prime chat --model qwen2.5:3b
Python 3.10+
Runtime
Ollama
LLM Backend
Docker
Optional Sandbox
Compliance Built-In

SEBI-Safe by Design

PRIME is engineered with regulatory compliance at its core. Guardrails are enforced at both the prompt and response level — not as an afterthought, but as architecture.

Never provides buy/sell/hold recommendations
No target prices, stop losses, or portfolio advice
All outputs carry mandatory educational disclaimers
Guardrails enforced at prompt and response level
Ind AS standards compliance for financial extraction

Ready to Analyze?

Start extracting insights from Indian annual reports today. Fully open source. Fully offline. Fully compliant.

View on GitHubRead the Docs