liveBook · Manning

Chapter 3: Working with generative AI in finance

What you will learn in chapter 3 of Financial AI in Practice

The introduction contrasts earlier structured-data ML in finance with GenAI’s generative capabilities and explains why its adoption calls for both enthusiasm and guardrails.

After this chapter you will be able to

Section by section

Introduction

The introduction contrasts earlier structured-data ML in finance with GenAI’s generative capabilities and explains why its adoption calls for both enthusiasm and guardrails.

Key terms: generative AI (GenAI), machine learning (ML), large language models (LLMs), structured data analytics, conversation-driven, generative tools, guardrails, business strategy, regulation

3.1 The new playbook: AI engineering

Introduces AI engineering as a shift away from building a separate model from scratch for every task.

Key terms: AI engineering, GenAI

3.1.1 The great shift: From custom models to foundation engines

This section contrasts task-specific model building with AI engineering around pretrained foundation models in finance.

Key terms: custom models, pretrained foundation models, LLMs, AI engineering, AI system architect

3.1.2 Finance’s reality: New engine, same high-stakes fuel

The section explains why financial LLM applications still depend on trustworthy data and systems of pipelines and guardrails that keep their use within strict boundaries.

Key terms: foundation models, garbage in, garbage out, data pipeline, pipelines, guardrails, accuracy, auditability, risk management, operational and regulatory boundaries

3.1.3 Five truths for the modern financial AI engineer

This section corrects five misconceptions about using GenAI in finance: where classical ML remains stronger, how to ground LLMs, why retrieval quality matters, how to constrain agent actions, and which deployment principles endure.

Key terms: classical ML, gradient boosting, XGBoost, LSTM, LLM, structured, numerical data, hallucinate, reasoning engines, Retrieval-Augmented Generation (RAG), trustworthy, real-time facts

3.2 The GenAI blueprint: Architecting for finance

Introduces the high-level reason financial GenAI needs a multilayered workflow rather than a direct model call.

Key terms: multilayered pipeline, checkpoints, enrichment stages, LLM, BFSI

3.2.1 The core building blocks of a financial AI system

This section traces a financial GenAI query through security, caching, orchestration, grounded data, model routing, and output checks to show how a layered architecture manages cost and risk.

Key terms: security and input guardrails, PII, output guardrails and compliance, human-in-the-loop (HITL), defense-in-depth, optional frontend cache, preapproved, stored response, orchestration layer, orchestrator, RAG component

3.3 The builder’s journey: Powering Alpha Digest step-by-step

This section introduces the AlphaStream team’s upcoming step-by-step journey from the AI architecture blueprint to building Alpha Digest.

3.3.1 Step 1—Choosing the foundation: The model selection dilemma

This section shows how AlphaStream evaluates LLMs for Alpha Digest, weighs commercial and open-source tradeoffs, and chooses a two-track model strategy.

Key terms: head-to-head test, anonymized posts, candidate models, abstract benchmarks, closed source models, open-source models, data sovereignty, vendor lock-in, hybrid, two-track approach, commercial API

3.3.2 Step 2—Grounding the model in reality: Mastering RAG

This section explains how RAG gives Alpha Digest timely, grounded information and why ingestion and chunking quality matter as much as the model.

Key terms: Retrieval-Augmented Generation (RAG), grounding, hallucinations, ingestion pipeline, embedding model, vector database, RAG chain, chunking strategy, small chunks, parent document

3.3.3 Step 3—Teaching our style: The art of fine-tuning

This section explains how AlphaStream fine-tunes a foundation model to give its factually grounded digest a distinctive voice, using high-quality examples and resource-conscious PEFT practices.

Key terms: fine-tuning, foundation model, RAG, prompt engineering, full fine-tuning, Parameter-Efficient Fine-Tuning (PEFT), Low-Rank Adaptation (LoRA), model version transitions, gold standard, fine-tuning data

3.3.4 Step 4—The next frontier: From AI agents to agentic AI

The section distinguishes scripted AI agents from goal-directed agentic AI and explains how MCP simplifies tool integration without replacing reasoning or financial governance.

Key terms: AI agent, agentic AI, high-level objective, structured and continuous supervision, human approval, goal-oriented automation, function calling, Model Context Protocol, MCP server, custom wrappers

3.4 Deployment strategies and future directions

Deploying a financial AI feature requires a measured, monitored rollout rather than ending at model training or code completion.

Key terms: big bang launch, phased, measured, and continuously monitored rollout

3.4.1 Phased rollouts and continuous feedback

This section explains how to introduce Alpha Digest gradually, test its impact, and use user feedback to improve it.

Key terms: phased rollout, targeted pilots, sandbox environments, A/B testing, champion-challenger, feedback loops, annotated logs, user satisfaction scores, fine-tuning dataset, RAG retrieval strategy

3.4.2 Cost and performance optimization

This section explains practical ways to control the cost of running GenAI at scale without using the most expensive pipeline for every request.

Key terms: usage caps, caching, Alpha Digest, tiered model access, model routing, smart gateway, top-tier model, prompt audits, tokens

3.4.3 Governance, open source, and the future

The section explains why financial GenAI needs revalidated model upgrades, a deliberate open-source strategy, and continuous oversight.

Key terms: foundation model, model governance, life cycle management, revalidation, open source models, host and fine-tune, vendor lock-in, data privacy, continuous monitoring and maintenance, disciplined oversight

3.5 Wrapping up: From proofs of concept to scalable impact

The section summarizes how combining GenAI components within a security-first architecture can create financial value while meeting the domain’s demands for oversight and reliability.

Key terms: AI engineering, layered, security-first architecture, model selection, RAG, fine-tuning (PEFT), guarded AI agents, HITL governance, kill-switches, audit logs, mandatory human review

3.6 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 2: From model to money: A strategist’s guide to real-world financial AI Chapter 4: Risk and compliance: Credit risk fundamentals →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.