Automated Forensic Accounting & Management Integrity Analysis System
ForensicValue AI is a multi-agent system designed to detect accounting irregularities, governance risks, and "value traps" in Indian listed companies (NSE/BSE).
- Multi-Agent Architecture:
- Forensic Agent: Analyzes 10-year financials & annual report text for anomalies.
- Management Agent: Investigates promoter pledging, board independence, and related parties.
- RPT Agent: Scrutinizes Related Party Transactions for fund siphoning.
- Market Intelligence Agent: Searches web/social media for fraud allegations & sentiment.
- Narrative Agent: Synthesizes all findings into a "Forensic Detective Story".
- Deep Document Analysis: Downloads and parses Annual Reports & Concall Transcripts for rare insights.
- Self-Healing Pipeline: Robust error handling with
json_repairand auto-retries. - Interactive Dashboard: Streamlit-based UI for reports and batch processing.
-
Clone the repository:
git clone https://github.com/sanjibani/forensic-value-ai.git cd forensic-value-ai -
Install dependencies:
pip install -r requirements.txt
-
Set up environment: Create a
.envfile (see.env.example):# Required GOOGLE_API_KEY=your_gemini_key # Optional ANTHROPIC_API_KEY=your_claude_key OPENAI_API_KEY=your_openai_key
-
Run the Dashboard:
streamlit run dashboard.py
- Push this code to your GitHub repository.
- Go to share.streamlit.io.
- Connect your GitHub account.
- Select the
forensic-value-airepo. - Set "Main file path" to
dashboard.py. - Add your API keys (
GOOGLE_API_KEY, etc.) in the Advanced Settings -> Secrets section. - Click Deploy.
- Build & Run:
docker-compose up --build
- Access at
http://localhost:8501.
The system uses LangGraph to orchestrate agents:
Fetcher -> Forensic/Mgmt/RPT/Market (Parallel) -> Aggregator -> Critic -> Narrative -> Report.
MIT License.
