How bhumikaaggwl/findoc-analyzer works
FinDoc AI ingests financial filings into two complementary stores: page-tagged text chunks for semantic retrieval and structured metrics and ratios in SQLite. Users select a filing, ask a question, and receive an answer grounded in retrieved pages; they can also view stored metrics and ratios and request an investment recommendation. Batch ingestion orchestrates extraction, chunking, embedding, analysis, and persistence. The README also documents section-wise analyst commentary. Edges are limited to relationships supported by the README or indexed source references; unsampled implementations are not treated as inspected.
Main entry points: ingest_all.py Batch Ingestion · Home.py Streamlit Chat UI · retriever.py Semantic Retriever · rag_pipeline.py RAG Answer Pipeline
Components 20
Filing Ingestion
- Batch Ingestion
scripts/ingest_all.py - Document Extractor
src/document_processing/document_extractor.py - Text Chunker
src/document_processing/chunker.py
Evidence Retrieval
- Embedding Engine
src/embeddings/embedding_engine.py - Vector Store
src/embeddings/vector_store.py - Semantic Retriever
src/rag/retriever.py - RAG Answer Pipeline
src/rag/rag_pipeline.py
Financial Analysis
- Metrics Extractor
src/financial_analysis/metrics_extractor.py - Ratio Calculator
src/financial_analysis/ratio_calculator.py - Section Insights
src/analysis_engine/insight_generator.py - Investment Recommender
src/analysis_engine/investment_recommender.py
Data Persistence
- SQL Data Models
database/models.py - SQL Repository
database/repository.py - SQLite Database
data/findoc.db
Research Experience
- Streamlit Chat UI
app/Home.py
Other components
- Filing Files
- Gemini API
- ChromaDB
- Groq LLM API
- Researcher
Connections 22
- Filing Files → Batch Ingestion: ingests files
README.md - Batch Ingestion → Document Extractor: extracts pages
scripts/ingest_all.py - Batch Ingestion → Text Chunker: chunks pages
scripts/ingest_all.py - Batch Ingestion → Embedding Engine: embeds chunks
scripts/ingest_all.py - Embedding Engine → Gemini API: requests embeddings
src/embeddings/embedding_engine.py - Batch Ingestion → Vector Store: stores chunks
scripts/ingest_all.py - Vector Store → ChromaDB: persists vectors
README.md - Batch Ingestion → Metrics Extractor: extracts metrics
scripts/ingest_all.py - Batch Ingestion → Ratio Calculator: calculates ratios
scripts/ingest_all.py - Batch Ingestion → SQL Repository: saves records
scripts/ingest_all.py - SQL Repository → SQL Data Models: uses models
database/repository.py - SQL Data Models → SQLite Database: stores structured data
database/models.py - Researcher → Streamlit Chat UI: asks questions
README.md - Streamlit Chat UI → SQL Repository: loads filings and figures
app/Home.py - Streamlit Chat UI → RAG Answer Pipeline: submits question
app/Home.py - RAG Answer Pipeline → Semantic Retriever: builds context
src/rag/rag_pipeline.py - Semantic Retriever → Embedding Engine: embeds query
src/rag/retriever.py - Semantic Retriever → Vector Store: searches chunks
src/rag/retriever.py - RAG Answer Pipeline → Groq LLM API: generates answer
README.md - Streamlit Chat UI → Investment Recommender: requests recommendation
app/Home.py - Investment Recommender → Semantic Retriever: retrieves evidence
src/analysis_engine/investment_recommender.py - Streamlit Chat UI → Section Insights: shows commentary
README.md