How sahinurrahman-debug/vibefinance works
VibeFinance is a FastAPI investment-guidance app for Indian retail investors. A browser request reaches the API, which authenticates the user and invokes the engine; the engine runs market and personal agents, then synthesizes cited, calibrated recommendations and stores the run. Separate branches support portfolio risk and alerts, live data, and evaluation/back-testing. The README documents these connections; sampled excerpts substantiate key implementation details, while unsampled modules are represented only where documented capabilities and the source index support them.
Main entry points: engine.py Analysis engine · agents.py Six agents · server.py REST API · rag.py Filing retrieval
Components 24
User experience and API
- Web dashboard
app/static/index.html - REST API
app/server.py - Account security
app/security.py - Runtime configuration
app/config.py
Analysis pipeline
- Analysis engine
app/engine.py - Six agents
app/agents.py - Signal functions
app/signals.py - Output contracts
app/contracts.py - Recommendation synthesis
app/synthesis.py - Run request cache
app/runcache.py
Market data and retrieval
- Market feeds and data
app/market.py - Live data adapters
app/live.py - Filing corpus
app/corpus.py - Corpus history
app/corpus_history.py - Filing retrieval
app/rag.py - Vector index
app/vectorstore.py - Finance lexicon
app/lexicon.py
Personal finance and state
- Portfolio risk
app/portfolio.py - User alerts
app/alerts.py - Account and run store
app/store.py
Evaluation
- Confidence calibration
app/calibration.py - Signal back-test
app/backtest.py - Strategy back-test
app/strategy.py
Other components
- Investor browser
Connections 31
- Investor browser → Web dashboard: loads
README.md - Web dashboard → REST API: calls
README.md - REST API → Account security: authenticates
README.md - REST API → Analysis engine: requests analysis
README.md - REST API → Account and run store: reads and writes
README.md - Analysis engine → Six agents: dispatches
README.md - Analysis engine → Recommendation synthesis: synthesizes outputs
README.md - Analysis engine → Account and run store: persists runs
README.md - Analysis engine → Portfolio risk: computes risk
README.md - Analysis engine → User alerts: evaluates rules
README.md - Analysis engine → Signal back-test: uses evaluation
README.md - Analysis engine → Strategy back-test: runs strategies
README.md - Analysis engine → Run request cache: caches requests
app/engine.py - Six agents → Signal functions: computes signals
app/agents.py - Six agents → Output contracts: returns structured outputs
README.md - Six agents → Market feeds and data: reads feeds
app/agents.py - Six agents → Filing retrieval: retrieves filings
README.md - Six agents → Portfolio risk: uses user risk
README.md - Six agents → Account and run store: uses user history
README.md - Recommendation synthesis → Confidence calibration: calibrates confidence
app/synthesis.py - Recommendation synthesis → Output contracts: consumes outputs
app/synthesis.py - Market feeds and data → Live data adapters: supports live mode
README.md - Live data adapters → Market feeds and data: provides live feeds
README.md - Filing retrieval → Filing corpus: indexes passages
app/rag.py - Filing retrieval → Vector index: searches vectors
app/rag.py - Filing retrieval → Finance lexicon: expands queries
README.md - Corpus history → Filing corpus: maintains history
app/corpus_history.py - Signal back-test → Signal functions: evaluates signals
app/backtest.py - Signal back-test → Market feeds and data: uses historical data
app/backtest.py - Strategy back-test → Signal back-test: reuses signal grid
README.md - REST API → Runtime configuration: uses settings
app/server.py