Submitted:
24 December 2025
Posted:
26 December 2025
You are already at the latest version
Abstract
Keywords:
I. Introduction
II. Related Work
III. System Architecture
A. Overall Design

B. RAG Pipeline Implementation
C. Multi-Agent System
D. Financial Metrics
IV. Implementation
A. Data Integration
B. Technology Stack
V. Evaluation
A. System Performance
B. Provenance Analysis
C. Cost Analysis
VI. Limitations and Future Work
VII. Conclusion
Acknowledgments
References
- Kearney, M.; Liu, S. Textual sentiment in finance: A survey of methods and models. Int. Review of Financial Analysis 2014, 33, 171–185. [Google Scholar] [CrossRef]
- El-Haj, A. Multilingual financial text summarization. Proc. 1st Financial Narrative Processing Workshop 2018. [Google Scholar]
- Araci, D. FinBERT: Financial sentiment analysis with pre-trained language models. arXiv 2019, arXiv:1908.10063. [Google Scholar]
- Yang, H. FinGPT: Open-source financial large language models. arXiv 2023, arXiv:2306.06031. [Google Scholar] [CrossRef]
- Wu, S. BloombergGPT: A large language model for finance. arXiv 2023, arXiv:2303.17564. [Google Scholar] [CrossRef]
- Lewis, P. Retrieval-augmented generation for knowledge-intensive NLP tasks. NeurIPS 2020, 33. [Google Scholar]
- OpenAI, GPT-4 technical report. arXiv 2023, arXiv:2303.08774.
- Chase, H. LangChain. github.com/langchain-ai/langchain, 2022. [Google Scholar]
- Financial Management Association, Analyst Workflow and Reporting Practices. 2023.
- Bhatia, R. FinTral: A Family of GPT-4 Level Multimodal Financial LLMs. arXiv 2024, arXiv:2402.10986. [Google Scholar]
- Xie, Q. Open-FinLLMs: Open Multimodal LLMs for Financial Applications. arXiv 2024, arXiv:2408.11878. [Google Scholar]
- Chen, J. MultiFinRAG. arXiv 2025, arXiv:2506.20821. [Google Scholar] [CrossRef]
- Kumar, A. MarketSenseAI 2.0. arXiv 2025, arXiv:2502.00415. [Google Scholar]
- Zhang, Z. FinAR-Bench: Financial Analysis and Reasoning Benchmark. arXiv 2025, arXiv:2506.07315. [Google Scholar]
- Wang, Y. REAL-MM-RAG: Real-world Multi-Modal RAG. arXiv 2025, arXiv:2502.12342. [Google Scholar]
- Li, L. MDocAgent: Multi-Document Agent. arXiv 2025, arXiv:2503.13964. [Google Scholar]
| Parameter | Value |
|---|---|
| Embedding Model | text-embedding-3-small |
| Embedding Dimensions | 1,536 |
| Tokenizer | tiktoken (cl100k_base) |
| Chunk Size | 1,000 tokens |
| Chunk Overlap | 200 tokens |
| Vector Database | ChromaDB (persistent) |
| Distance Metric | L2 (Euclidean)* |
| Top-K Retrieval | 5 |
| Min Relevance Score | 0.3 |
| Generation Model | GPT-4o |
| Temperature | 0.3 |
| Max Output Tokens | 2,000 |
| Category | Metrics |
|---|---|
| Profitability (6) | Gross Margin, Operating Margin, Net Margin, ROE, ROA, ROCE |
| Liquidity (3) | Current Ratio, Quick Ratio, Cash Ratio |
| Efficiency (5) | Asset Turnover, Inventory Turnover, Receivables Turnover, DSO, DIO |
| Leverage (4) | Debt-to-Equity, Debt-to-Assets, Equity Multiplier, Interest Coverage |
| Cash Flow (4) | OCF Ratio, FCF Yield, Cash Flow Coverage, CapEx-to-Revenue |
| Valuation (4) | P/E Ratio, P/B Ratio, P/S Ratio, EV/EBITDA |
| Health (1) | Altman Z-Score |
| Layer | Technologies |
|---|---|
| Backend | Python 3.11, FastAPI, SQLAlchemy, Pydantic |
| AI/ML | OpenAI GPT-4o, text-embedding-3-small, ChromaDB, tiktoken |
| Database | PostgreSQL 15 (structured data), ChromaDB (vector store) |
| Frontend | React 18, Vite, Tailwind CSS, Recharts |
| Data Sources | SEC EDGAR API (JSON endpoints), Yahoo Finance |
| DevOps | Docker, AWS EC2 t3.medium, Nginx, Let’s Encrypt |
| Component | Avg (ms) | Min | Max |
|---|---|---|---|
| API Health Check | 3.3 | 0.8 | 13.0 |
| PostgreSQL Query | 1.2 | 0.7 | 2.7 |
| ChromaDB Vector Search | 1.3 | 0.9 | 2.1 |
| Full RAG Pipeline* | 15,043 | 12,620 | 17,465 |
| SEC EDGAR API Call | 14.0 | - | - |
| Metric | RAG Pipeline |
|---|---|
| Queries Tested | 3 |
| Average Latency | 13,530 ms |
| Average Sources Cited | 4.0 per response |
| Source Type | SEC 10-K filing excerpts |
| Cites Specific Fiscal Years | Yes (2022-2024) |
| Usage | Est. Cost (USD) |
|---|---|
| Per Query (~3.5K tokens) | ~$0.0125 |
| Per 100 Queries | ~$1.25 |
| Per 1,000 Queries | ~$12.50 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).