The book · free to read · 54,000 words
Agentic Workflows: Building a RAG Pipeline That Cites Its Sources
The series' pipeline, written down. You build Howard's Lantern, a question box over the driving laws of all 51 states, by hand, one stage at a time, in TypeScript, and compare each stage with the production code.
Contents
-
Introduction
Introduction
-
Chapter 1
Talking to a Model
-
Chapter 2
Writing From a Book
-
Chapter 3
The Check That Is Not the Model
-
Chapter 4
Finding It by Its Words
-
Chapter 5
Finding It by Meaning
-
Chapter 6
Saying It the Law’s Way
-
Chapter 7
Choosing What It Reads
-
Chapter 8
Once Found, Look It Up
-
Chapter 9
A Corpus You Can Trust
-
Chapter 10
Failing Closed
-
Chapter 11
Measuring the Whole Thing
-
Chapter 12
Tests That Never Call the Model
-
Conclusion
Conclusion
-
Appendix A
Glossary
-
Appendix B
The Finished Pipeline
- What is here
- package.json
- tsconfig.json
- .gitignore
- ask/talk.ts
- ask/setup.ts
- ask/scope.ts
- ask/corpus.ts
- ask/answer.ts
- ask/figures.ts
- ask/check.ts
- ask/check.test.ts
- ask/retrieve.ts
- ask/retrieve.test.ts
- ask/vectors.ts
- ask/fuse.ts
- ask/fuse.test.ts
- ask/rephrase.ts
- ask/rerank.ts
- ask/schedule.ts
- ask/sections.ts
- ask/widen.test.ts
- ask/chunk.ts
- ask/manifest.ts
- ask/corpus.test.ts
- ask/pipeline.ts
- ask/live.ts
- ask/ask.ts
- ask/eval-cases.ts
- ask/register.ts
- ask/eval.ts
- ask/pipeline.test.ts
Also by Joel Stevick
The 25x Developer: building real applications with AI agents, quickly, without giving up the testing that keeps them working. On Amazon.