Finsight is an intelligent assistant that automates financial analysis, anomaly detection, and risk profiling using Retrieval-Augmented Generation (RAG), LangChain agents, and local LLMs via Ollama. It parses financial documents, answers company-specific queries, and generates structured PDF reports β empowering analysts, investors, and enterprise decision-makers.
- β Financial Report Generation
- π Retrieval-Augmented QA (RAG)
- π¨ Anomaly Detection
β οΈ Risk Report Generation- π PDF Output
- π€ LangChain Agent Tools
- π§ͺ CLI Interface
| Layer | Technology |
|---|---|
| Language Model | Ollama β mistral |
| Framework | LangChain |
| Retrieval | Chroma Vectorstore |
| Embedding Mgmt | Custom loader + embedding manager |
| PDF Generation | fpdf |
| Interface | Python CLI + LangChain Agents |
| Tool Name | Purpose |
|---|---|
generate_financial_report |
Creates a structured PDF financial report |
retrieval_qa |
Answers user questions using retrieved financial docs |
detect_anomalies |
Detects irregular patterns in company data |
generate_risk_report |
Generates a risk profile and warning report |
finsight/
βββ app/
β βββ cli/ # Command-line interface logic
β βββ embeddings/ # Vectorstore setup and embedding manager
β βββ tools/ # Tool definitions for the LangChain agent
β βββ utils/ # PDF and formatting helpers
βββ output/
β βββ report/ # Auto-generated PDF reports
βββ main.py # CLI Entry point
βββ data/ # add regulatory filings for analysis
βββ font/
βββ requirements.txt
βββ README.md
git clone https://github.com/your-username/finsight.git
cd finsight- Create and Activate a Virtual Environment
Copy
Edit
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate
ollama run mistral
python main.py