FinAI Data Assistant: LLM-based Financial Database Query Processing with the OpenAI Function Calling API
On the map: LLM agents and tool use → Financial trading and forecasting agents
Abstract (arXiv)
We present FinAI Data Assistant, a practical approach for natural-language querying over financial databases that combines large language models (LLMs) with the OpenAI Function Calling API. Rather than synthesizing complete SQL via text-to-SQL, our system routes user requests to a small library of vetted, parameterized queries, trading generative flexibility for reliability, low latency, and cost efficiency. We empirically study three questions: (RQ1) whether LLMs alone can reliably recall or extrapolate time-dependent financial data without external retrieval; (RQ2) how well LLMs map company names to stock ticker symbols; and (RQ3) whether function calling outperforms text-to-SQL for end-to-end database query processing. Across controlled experiments on prices and fundamentals, LLM-only predictions exhibit non-negligible error and show look-ahead bias primarily for stock prices relative to model knowledge cutoffs. Ticker-mapping accuracy is near-perfect for NASDAQ-100 constituents and high for S&P~500 firms. Finally, FinAI Data Assistant achieves lower latency and cost and higher reliability than a text-to-SQL baseline on our task suite. We discuss design trade-offs, limitations, and avenues for deployment.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Financial trading and forecasting agents, one of 16 directions in LLM agents and tool use. Builds on 16 of its 32 references that are in the map. First posted on arXiv 15 Oct 2025.
Builds on
16 of 32 references.
References · 16
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2023BloombergGPT: A Large Language Model for Financecited by 923
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2023Large Language Models Are Zero-Shot Time Series Forecasterscited by 491
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
- 2019CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databasescited by 180
- 2017SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learningcited by 135
- 2020Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsingcited by 133
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
4 more
- 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
- 2024Large Language Model Enhanced Text-to-SQL Generation: A Surveycited by 24
- 2025LLM-Enhanced Black-Litterman Portfolio Optimizationcited by 7
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024FinBen: A Holistic Financial Benchmark for Large Language Models
- 2025FinSphere, a Real-Time Stock Analysis Agent Powered by Instruction-Tuned LLMs and Domain Tools
- 2025MarketSenseAI 2.0: Enhancing Stock Analysis through LLM Agents
- 2026FinSheet-Bench: From Simple Lookups to Complex Reasoning, Where LLMs Break on Financial Spreadsheets
- 2026BizFinBench.v2: Towards Reliable LLMs in Finance via Real-User Data and Offline/Online Bilingual Evaluation
- 2025Towards Competent AI for Fundamental Analysis in Finance: A Benchmark Dataset and Evaluation
- 2026FinRetrieval: A Benchmark for Financial Data Retrieval by AI Agents
- 2024An Agent Framework for Real-Time Financial Information Searching with Large Language Models