-
Welcome to Your Book
- Sections and scene breaks
Building AI That Knows Your Data
RAG From Scratch · Volume I · Foundations
Your company's answers are already written down. This book builds the machine that finds them.
Minimum price
$9.99
$14.99
You pay
Author earns
About
About the Book
On a Tuesday morning in March, the chief executive of Northwind Industries asked a simple question: have we ever agreed to a liability cap below one million dollars? The answer existed. It was written down, signed, and filed. Finding it took three days, and not finding it in time cost forty thousand dollars.
Every organization has a version of that Tuesday. The knowledge is real, it survived, and it is spread across a million files in a hundred formats, organized by whoever was closest to the filing cabinet that day. An organization knows more than anyone in it. That is the problem this series exists to solve.
Building AI That Knows Your Data teaches you to build Retrieval-Augmented Generation the way it should be learned: from scratch, from the documents up, with no magic imports doing the thinking for you. You will build a working system for Northwind, a fictional 240-person manufacturer with thirty years of documents and no way to search them, one chapter at a time, alongside a cast you will come to know by instinct: the CEO with the only acceptance test that matters, the operations manager who has been the company's search engine for twenty years, the IT lead who builds the machine, and the in-house lawyer who trusts nothing until it shows its sources, and is right to.
Volume I builds the offline half: everything that happens to documents before anyone asks a question. You will crack open PDFs, Word files, spreadsheets, emails, and one scanned contract from 1994 that behaves like a sealed envelope. You will clean what you extracted, cut it into pieces a search engine can love, turn text into searchable meaning, and store a million vectors somewhere sensible. By the final chapter, a question in plain English finds the right passage across formats, vocabularies, and decades, with a score, a label, and a page number.
What you need: a computer that can run Python. No GPU, no cloud account, no budget. Every model in this volume is small, free, and runs locally, which is not a compromise but a lesson: the first serious question in enterprise AI is where your data is allowed to go, and this book's answer, for the pilot, is nowhere.
Every printed line of code was run before it was printed. The diagrams speak one visual language. The project never resets. And by the end of this trilogy, you will have built the complete system: retrieval, generation with citations, evaluation, and production operations.
Volume I is the foundation. The story continues in Volume II, where the front desk opens and the system finally answers.
Not sure? Download the free sample. Chapter 1 costs nothing and explains the ghost.
Feedback
Author
About the Author
JC Marin is an AI infrastructure engineer who builds AI systems in the one kind of environment where "move fast and break things" is not on the menu: high-security enterprise networks where every deployment must answer for where the data goes.
As an AI subject matter expert at a major aerospace and defense company, he architected a multi-agent AI platform for an air-gapped classified network, including large-model serving, request routing, and per-user vector memory. The questions this book treats as drama, citations, provenance, superseded documents, and data that never leaves the building, are the questions he answers professionally.
He also runs an independent AI solutions practice and operates a self-hosted multi-GPU inference environment serving open-weight models, the same build-it-yourself-first philosophy this series teaches. He is based in Melbourne, Florida. Building AI That Knows Your Data is his first technical book series.
Contents
Table of Contents
Get the free sample chapters
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Write and Publish on Leanpub
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.