AI Visibility Guide
Learn AI Visibility
A structured guide to how AI systems discover, retrieve, select, recommend, and cite information — and what that means for AI Visibility.
01 Part I — Foundations of Large Language Models
01.01 Chapter 1- From Text to Model Input
- 01.01.01 Chapter Goal
- 01.01.02 Chapter Contents
- 01.01.03 1. Text
- 01.01.04 2. Character
- 01.01.05 3. Word
- 01.01.06 4. Vocabulary
- 01.01.07 5. Token
- 01.01.08 6. Why Not Just Use Words?
- 01.01.09 7. Subword Tokenization
- 01.01.10 8. Common Words vs. Rare Words
- 01.01.11 9. Tokenization
- 01.01.12 10. Tokenizer
- 01.01.13 11. Token ID
- 01.01.14 12. An Important Distinction: ID Is Not Meaning
- 01.01.15 13. Vocabulary Size
- 01.01.16 14. Rare Tokens and Rare Text
- 01.01.17 15. Token Count
- 01.01.18 16. Context
- 01.01.19 17. Context Is Not the Same as Permanent Knowledge
- 01.01.20 18. Context Window, Context Limit, and Context Length
- 01.01.21 19. A Simple Analogy
- 01.01.22 20. Input Context
- 01.01.23 21. Output Tokens
- 01.01.24 22. Input vs. Output Tokens
- 01.01.25 23. Token Budget
- 01.01.26 24. Context Allocation
- 01.01.27 25. Information Competition Inside the Context Window
- 01.01.28 26. Long Context
- 01.01.29 27. Why Tokenization Matters for Long Context
- 01.01.30 28. Why This Matters for Different Languages
- 01.01.31 29. Why This Matters for Names and Brands
- 01.01.32 30. The Complete Pipeline So Far
- 01.01.33 31. What We Have Not Explained Yet
- 01.01.34 32. Mental Model
- 01.01.35 Chapter 1 Recap
- 01.01.36 The Single Most Important Idea from Chapter 1
01.02 Chapter 2- Numerical Representation of Meaning
- 01.02.01 Chapter Goal
- 01.02.02 Chapter Contents
- 01.02.03 1. The Problem: Computers Need Numbers
- 01.02.04 2. Vector Fundamentals
- 01.02.05 3. Embeddings
- 01.02.06 4. Semantic Relationships
- 01.02.07 5. Measuring Similarity
- 01.02.08 6. Important Distinctions
- 01.02.09 7. A Complete Simplified Example
- 01.02.10 8. Connecting the Concepts
- 01.02.11 9. Why These Concepts Matter
- 01.02.12 10. Common Misunderstandings
- 01.02.13 11. How the Concepts Connect
- 01.02.14 Mental Model
- 01.02.15 Chapter 2 Recap
- 01.02.16 The Single Most Important Idea from Chapter 2
01.03 Chapter 3- Transformer Architecture
- 01.03.01 Chapter Goal
- 01.03.02 Chapter Contents
- 01.03.03 1. The Problem: Meaning Depends on Context
- 01.03.04 2. From Static Representation to Contextual Representation
- 01.03.05 3. Language Models and Large Language Models
- 01.03.06 4. Parameters and Model Size
- 01.03.07 5. Neural Networks and Architecture
- 01.03.08 6. The Transformer
- 01.03.09 7. Transformer Layers
- 01.03.10 8. Attention and Self-Attention
- 01.03.11 9. Attention Scores
- 01.03.12 10. Query, Key, and Value
- 01.03.13 11. The Attention Pipeline
- 01.03.14 12. Contextual Representations and Embeddings
- 01.03.15 13. Token Relationships and Context
- 01.03.16 14. Long-Range Dependencies
- 01.03.17 15. Multi-Head Attention
- 01.03.18 16. Repeated Contextualization Across Layers
- 01.03.19 17. A Complete Simplified Transformer Example
- 01.03.20 18. Why These Concepts Matter
- 01.03.21 19. Common Misunderstandings
- 01.03.22 20. How the Concepts Connect
- 01.03.23 Mental Model
- 01.03.24 Chapter 3 Recap
- 01.03.25 The Single Most Important Idea from Chapter 3
01.04 Chapter 4- How LLMs Learn
- 01.04.01 Chapter Goal
- 01.04.02 Chapter Contents
- 01.04.03 1. The Missing Piece: Where Do the Parameters Come From?
- 01.04.04 2. What Is Training?
- 01.04.05 3. Training Data
- 01.04.06 4. The Model Needs a Learning Objective
- 01.04.07 5. Next-Token Prediction
- 01.04.08 6. Prediction Error and Parameter Updates
- 01.04.09 7. The Training Loop
- 01.04.10 8. Why Next-Token Prediction Is More Powerful Than It Sounds
- 01.04.11 9. What Does an LLM Learn?
- 01.04.12 10. Learned Representations
- 01.04.13 11. Pre-Training and Base Models
- 01.04.14 12. Training vs. Inference
- 01.04.15 13. Generalization and Memorization
- 01.04.16 14. What Shapes Learned Associations?
- 01.04.17 15. Training Cutoff
- 01.04.18 16. A Complete Simplified Training Example
- 01.04.19 17. From Training to Learned Behavior
- 01.04.20 18. Training Does Not Guarantee Truth
- 01.04.21 19. Common Misunderstandings
- 01.04.22 20. How the Concepts Connect
- 01.04.23 Mental Model
- 01.04.24 Chapter 4 Recap
- 01.04.25 The Single Most Important Idea from Chapter 4
01.05 Chapter 5- How LLMs Generate Answers
- 01.05.01 Chapter Goal
- 01.05.02 Chapter Contents
- 01.05.03 1. Training Is Finished — Now What?
- 01.05.04 2. Autoregressive Generation
- 01.05.05 3. The Model Does Not Choose from Complete Answers
- 01.05.06 4. Probability Distribution
- 01.05.07 5. Candidate Tokens
- 01.05.08 6. Token Probability
- 01.05.09 7. Token Probabilities Change After Every Generated Token
- 01.05.10 8. Generation as a Path Through Possibilities
- 01.05.11 9. How Is the Next Token Selected?
- 01.05.12 10. What Is Sampling?
- 01.05.13 11. Deterministic vs. Probabilistic Generation
- 01.05.14 12. Why Randomness Can Be Useful
- 01.05.15 13. Temperature
- 01.05.16 14. A Complete Simplified Generation Example
- 01.05.17 15. Generation Depends on the Entire Available Context
- 01.05.18 16. Why the Same Prompt Can Produce Different Answers
- 01.05.19 17. Model Confidence and Uncertainty
- 01.05.20 18. Calibration
- 01.05.21 19. Hallucination, Unsupported Generation, and Fabrication
- 01.05.22 20. Hallucination Cascades
- 01.05.23 21. Generated Answers Can Combine Learned Knowledge and Current Context
- 01.05.24 22. Generation vs. Retrieval and Verification
- 01.05.25 23. The Complete Generation Pipeline
- 01.05.26 24. Common Misunderstandings
- 01.05.27 25. How the Concepts Connect
- 01.05.28 Mental Model
- 01.05.29 Chapter 5 Recap
- 01.05.30 The Single Most Important Idea from Chapter 5
01.06 Chapter 6- Turning a Base Model into an Assistant
- 01.06.01 Chapter Goal
- 01.06.02 Chapter Contents
- 01.06.03 1. The Problem with a Base Model
- 01.06.04 2. Text Completion vs. Instruction Following
- 01.06.05 3. What Is Post-Training?
- 01.06.06 4. Pre-Training vs. Post-Training
- 01.06.07 5. Fine-Tuning
- 01.06.08 6. Domain Fine-Tuning
- 01.06.09 7. Behavioral Fine-Tuning
- 01.06.10 8. Instruction Tuning
- 01.06.11 9. What Is Instruction Following?
- 01.06.12 10. From Instruction Following to Assistant Behavior
- 01.06.13 11. Human Preferences and Preference Data
- 01.06.14 12. RLHF
- 01.06.15 13. Preference Optimization
- 01.06.16 14. How Post-Training Changes Behavior
- 01.06.17 15. What Is a Prompt?
- 01.06.18 16. Prompt vs. Training
- 01.06.19 17. System, Developer, and User Instructions
- 01.06.20 18. Prompt Hierarchy and Instruction Priority
- 01.06.21 19. Prompts and Generation Constraints
- 01.06.22 20. Structured Output
- 01.06.23 21. What Is JSON?
- 01.06.24 22. JSON Schema
- 01.06.25 23. Structured Output vs. Factual Truth
- 01.06.26 24. Post-Training and Prompting Work Together
- 01.06.27 25. Assistant Behavior Is a Layered System
- 01.06.28 26. A Complete Simplified Assistant Example
- 01.06.29 27. Common Misunderstandings
- 01.06.30 28. How the Concepts Connect
- 01.06.31 Mental Model
- 01.06.32 Chapter 6 Recap
- 01.06.33 The Single Most Important Idea from Chapter 6
02 Part II — Information Retrieval
02.01 Chapter 7- Information Retrieval Fundamentals
- 02.01.01 Chapter Goal
- 02.01.02 Chapter Contents
- 02.01.03 1. Why Information Retrieval Exists
- 02.01.04 2. What Is Information Retrieval?
- 02.01.05 3. Retrieval
- 02.01.06 4. Retrieval vs. Generation
- 02.01.07 5. The Retriever
- 02.01.08 6. The Corpus
- 02.01.09 7. Documents and Passages
- 02.01.10 8. What Is a Query?
- 02.01.11 9. Search Query vs. Attention Query
- 02.01.12 10. The Retrieval Problem
- 02.01.13 11. Crawling
- 02.01.14 12. Indexing and the Search Index
- 02.01.15 13. Query-Time Retrieval
- 02.01.16 14. Candidate Generation
- 02.01.17 15. What Is Relevance?
- 02.01.18 16. Relevance Score
- 02.01.19 17. Query–Document and Query–Passage Relevance
- 02.01.20 18. Ranking
- 02.01.21 19. Retrieval vs. Ranking
- 02.01.22 20. Reranking
- 02.01.23 21. Retrieval Can Operate at Multiple Granularities
- 02.01.24 22. Retrieval Is a Selection Problem
- 02.01.25 23. A Complete Simplified Retrieval Example
- 02.01.26 24. Retrieval in a Traditional Search Engine
- 02.01.27 25. Retrieval in an AI System
- 02.01.28 26. Retrieval and Generation Failures
- 02.01.29 27. Candidate Generation Dependency
- 02.01.30 28. Query-Specific Ranking and Intent
- 02.01.31 29. Basic Retrieval Pipeline
- 02.01.32 30. Common Misunderstandings
- 02.01.33 31. How the Concepts Connect
- 02.01.34 Mental Model
- 02.01.35 Chapter 7 Recap
- 02.01.36 The Single Most Important Idea from Chapter 7
02.02 Chapter 8- Lexical and Traditional Search
- 02.02.01 Chapter Goal
- 02.02.02 Chapter Contents
- 02.02.03 1. From Retrieval Architecture to Retrieval Method
- 02.02.04 2. What Is Keyword Search?
- 02.02.05 3. What Is Lexical Search?
- 02.02.06 4. Keyword Search vs. Lexical Search
- 02.02.07 5. Term Matching
- 02.02.08 6. Exact Match
- 02.02.09 7. Exact Phrase Matching
- 02.02.10 8. Why Simple Match Counting Is Not Enough
- 02.02.11 9. Keyword Relevance
- 02.02.12 10. Term Frequency
- 02.02.13 11. Document Frequency
- 02.02.14 12. Term Frequency vs. Document Frequency
- 02.02.15 13. Rare Terms Can Carry More Information
- 02.02.16 14. TF-IDF
- 02.02.17 15. Sparse Retrieval
- 02.02.18 16. What Is a Sparse Vector?
- 02.02.19 17. What Is an Inverted Index?
- 02.02.20 18. Posting Lists
- 02.02.21 19. Inverted Index and Candidate Generation
- 02.02.22 20. Boolean Retrieval
- 02.02.23 21. The Problem of Document Length
- 02.02.24 22. What Is BM25?
- 02.02.25 23. How BM25 Behaves
- 02.02.26 24. Why Lexical Search Is Powerful
- 02.02.27 25. The Central Weakness: Vocabulary Mismatch
- 02.02.28 26. Synonyms
- 02.02.29 27. Exact Words vs. Meaning
- 02.02.30 28. Search Intent Mismatch
- 02.02.31 29. Lexical vs. Semantic Strengths
- 02.02.32 30. Lexical Search and Candidate Generation
- 02.02.33 31. Lexical Search in RAG
- 02.02.34 32. Lexical Search in Web Search
- 02.02.35 33. A Complete Simplified Lexical Retrieval Example
- 02.02.36 34. Traditional Search Is Statistical, Not Truly “Understanding” the Query
- 02.02.37 35. Common Misunderstandings
- 02.02.38 36. How the Concepts Connect
- 02.02.39 Mental Model
- 02.02.40 Chapter 8 Recap
- 02.02.41 The Single Most Important Idea from Chapter 8
02.03 Chapter 9- Dense and Semantic Retrieval
- 02.03.01 Chapter Goal
- 02.03.02 Chapter Contents
- 02.03.03 1. From Words to Meaning
- 02.03.04 2. What Is Dense Retrieval?
- 02.03.05 3. What Is a Dense Vector?
- 02.03.06 4. Sparse Vector vs. Dense Vector
- 02.03.07 5. Dense Does Not Mean “More Accurate”
- 02.03.08 6. What Is Semantic Retrieval?
- 02.03.09 7. Dense Retrieval and Semantic Retrieval Are Related but Not Identical
- 02.03.10 8. Returning to Embeddings
- 02.03.11 9. Token Embeddings vs. Text Embeddings
- 02.03.12 10. Embedding Is a Representation, Not the Retrieval Process
- 02.03.13 11. What Is an Embedding Model?
- 02.03.14 12. Embedding Space
- 02.03.15 13. Document Embeddings
- 02.03.16 14. Query Embeddings
- 02.03.17 15. Query and Documents Need Comparable Representations
- 02.03.18 16. A Simplified Dense Retrieval Example
- 02.03.19 17. What Is Vector Similarity?
- 02.03.20 18. Cosine Similarity
- 02.03.21 19. Dot Product
- 02.03.22 20. Euclidean Distance
- 02.03.23 21. What Is Nearest-Neighbor Search?
- 02.03.24 22. Top-K Retrieval
- 02.03.25 23. Vector Index
- 02.03.26 24. Approximate Nearest-Neighbor Search
- 02.03.27 25. Dense Retrieval as Candidate Generation
- 02.03.28 26. A Typical Dense Retrieval Preparation Stage
- 02.03.29 27. A Typical Dense Retrieval Query-Time Stage
- 02.03.30 28. Bi-Encoder Retrieval
- 02.03.31 29. Query–Document Similarity
- 02.03.32 30. Vocabulary Mismatch and Paraphrases
- 02.03.33 31. Limits of Semantic Similarity
- 02.03.34 32. Entity and Identifier Problems
- 02.03.35 33. Embedding and Retrieval Quality
- 02.03.36 34. Passage-Level Dense Retrieval
- 02.03.37 35. A Vector Database
- 02.03.38 36. Metadata Filtering
- 02.03.39 37. Dense Retrieval and Ranking
- 02.03.40 38. Dense Retrieval vs. Reranking
- 02.03.41 39. Dense Retrieval vs. LLM Generation
- 02.03.42 40. Semantic Search Is Not “Search the LLM's Memory”
- 02.03.43 41. Lexical Search and Dense Search Use Different Evidence
- 02.03.44 42. Dense Retrieval Strengths and Limitations
- 02.03.45 43. Dense Retrieval and Information Competition
- 02.03.46 44. A Complete Simplified Dense Retrieval Example
- 02.03.47 45. The Same Example with Lexical Retrieval
- 02.03.48 46. Why Hybrid Retrieval Becomes Natural
- 02.03.49 47. Common Misunderstandings
- 02.03.50 48. How the Concepts Connect
- 02.03.51 Mental Model
- 02.03.52 Chapter 9 Recap
- 02.03.53 The Single Most Important Idea from Chapter 9
02.04 Chapter 10- Hybrid Retrieval
- 02.04.01 Chapter Goal
- 02.04.02 Chapter Contents
- 02.04.03 1. Why Hybrid Retrieval Exists
- 02.04.04 2. What Is Hybrid Retrieval?
- 02.04.05 3. Hybrid Retrieval Is Not a New Representation Type
- 02.04.06 4. The Two Signals
- 02.04.07 5. Complementary Failure Modes
- 02.04.08 6. Parallel Hybrid Retrieval
- 02.04.09 7. What Is Fusion?
- 02.04.10 8. Candidate Union
- 02.04.11 9. Why Candidate Union Can Improve Recall
- 02.04.12 10. Candidate Intersection
- 02.04.13 11. Why Intersection Can Be Too Strict
- 02.04.14 12. Candidate Generation vs. Fusion Ranking
- 02.04.15 13. The Score Problem
- 02.04.16 14. Retrieval Scores Are Not Directly Comparable
- 02.04.17 15. Score Normalization
- 02.04.18 16. Weighted Score Fusion
- 02.04.19 17. Why Use Different Weights?
- 02.04.20 18. Query-Dependent Weighting
- 02.04.21 19. Score Fusion vs. Rank Fusion
- 02.04.22 20. Why Rank Fusion Can Be Useful
- 02.04.23 21. Reciprocal Rank Fusion
- 02.04.24 22. RRF Intuition
- 02.04.25 23. RRF Does Not Need Raw Score Normalization
- 02.04.26 24. RRF Does Not Mean Every Retriever Has Equal Quality
- 02.04.27 25. Hybrid Retrieval and Recall
- 02.04.28 26. Higher Recall Can Increase Noise
- 02.04.29 27. Hybrid Retrieval Does Not Replace Ranking
- 02.04.30 28. Hybrid Retrieval and Reranking
- 02.04.31 29. Hybrid Retrieval Can Work at Passage Level
- 02.04.32 30. Example: Hybrid Retrieval in a Support Knowledge Base
- 02.04.33 31. Example: Hybrid Retrieval with an Identifier
- 02.04.34 32. Metadata Still Matters
- 02.04.35 33. Filtering Before Retrieval
- 02.04.36 34. Filtering After Retrieval
- 02.04.37 35. Hybrid Retrieval Is Not Just “BM25 + Embeddings”
- 02.04.38 36. Query Routing vs. Hybrid Retrieval
- 02.04.39 37. Hybrid Retrieval, Generation, and Truth
- 02.04.40 38. A Complete Simplified Hybrid Retrieval Example
- 02.04.41 39. When Hybrid Retrieval Helps Most
- 02.04.42 40. When Hybrid Retrieval May Be Unnecessary
- 02.04.43 41. Cost and Complexity
- 02.04.44 42. Hybrid Retrieval Must Be Evaluated
- 02.04.45 43. Common Misunderstandings
- 02.04.46 44. How the Concepts Connect
- 02.04.47 Mental Model
- 02.04.48 Chapter 10 Recap
- 02.04.49 The Single Most Important Idea from Chapter 10
02.05 Chapter 11- Ranking and Reranking
- 02.05.01 Chapter Goal
- 02.05.02 Chapter Contents
- 02.05.03 1. Candidate Generation Is Not the Final Decision
- 02.05.04 2. What Is Ranking?
- 02.05.05 3. What Is a Ranker?
- 02.05.06 4. Ranking Score
- 02.05.07 5. Retrieval vs. Ranking
- 02.05.08 6. Retrieval Often Already Produces an Initial Ranking
- 02.05.09 7. First-Stage Ranking
- 02.05.10 8. Why Multi-Stage Ranking Exists
- 02.05.11 9. What Is Reranking?
- 02.05.12 10. Why Reranking Can Be Better
- 02.05.13 11. Bi-Encoder Review
- 02.05.14 12. The Limitation of Separate Encoding
- 02.05.15 13. What Is a Cross-Encoder?
- 02.05.16 14. Bi-Encoder vs. Cross-Encoder
- 02.05.17 15. Why Cross-Encoders Are More Expensive
- 02.05.18 16. Joint Query–Document Interaction
- 02.05.19 17. Reranking Example
- 02.05.20 18. Reranking Does Not Usually Search the Whole Corpus
- 02.05.21 19. Retrieval Recall and Ranking Precision
- 02.05.22 20. Ranking Can Use More Than Text Similarity
- 02.05.23 21. Ranking Features
- 02.05.24 22. Retrieval Score vs. Ranking Features
- 02.05.25 23. What Is Learning to Rank?
- 02.05.26 24. Where Do Ranking Labels Come From?
- 02.05.27 25. Pointwise Ranking
- 02.05.28 26. Pairwise Ranking
- 02.05.29 27. Listwise Ranking
- 02.05.30 28. Cross-Encoder Reranking vs. Learning to Rank
- 02.05.31 29. Reranking After Hybrid Retrieval
- 02.05.32 30. Why Top Results Matter So Much
- 02.05.33 31. Ranking and the Context Window
- 02.05.34 32. Ranking Errors Can Become Generation Errors
- 02.05.35 33. Relevance Is Not the Only Ranking Objective
- 02.05.36 34. Relevance vs. Authority
- 02.05.37 35. Relevance vs. Freshness
- 02.05.38 36. Ranking vs. Factual Verification
- 02.05.39 37. Diversity in Ranking
- 02.05.40 38. Reranking Can Be Query-Aware in Greater Detail
- 02.05.41 39. Reranking Is Still Not Reasoning Over Everything
- 02.05.42 40. LLM-Based Reranking
- 02.05.43 41. A Complete Simplified Ranking Pipeline
- 02.05.44 42. Ranking in Traditional Search vs. AI Search
- 02.05.45 43. Ranking and AI Visibility
- 02.05.46 44. Common Misunderstandings
- 02.05.47 45. How the Concepts Connect
- 02.05.48 Mental Model
- 02.05.49 Chapter 11 Recap
- 02.05.50 The Single Most Important Idea from Chapter 11
02.06 Chapter 12- Measuring Retrieval Quality
- 02.06.01 Chapter Goal
- 02.06.02 Chapter Contents
- 02.06.03 1. What Is Retrieval Evaluation?
- 02.06.04 2. Evaluation Requires a Reference
- 02.06.05 3. What Is Ground Truth?
- 02.06.06 4. Relevance Judgments
- 02.06.07 5. Binary vs. Graded Relevance
- 02.06.08 6. Precision
- 02.06.09 7. The Intuition Behind Precision
- 02.06.10 8. Recall
- 02.06.11 9. Precision vs. Recall
- 02.06.12 10. The Precision–Recall Trade-Off
- 02.06.13 11. Why We Need @K Metrics
- 02.06.14 12. What Does K Mean?
- 02.06.15 13. Precision@K
- 02.06.16 14. Recall@K
- 02.06.17 15. Candidate Recall
- 02.06.18 16. Precision Matters More Near the End
- 02.06.19 17. Hit Rate@K
- 02.06.20 18. When Hit Rate Is Useful
- 02.06.21 19. Reciprocal Rank
- 02.06.22 20. Mean Reciprocal Rank — MRR
- 02.06.23 21. What MRR Measures Well
- 02.06.24 22. Why Position Matters in Ranking Evaluation
- 02.06.25 23. Discounted Cumulative Gain — DCG
- 02.06.26 24. Why DCG Uses Graded Relevance
- 02.06.27 25. NDCG — Normalized Discounted Cumulative Gain
- 02.06.28 26. NDCG Example
- 02.06.29 27. NDCG@K
- 02.06.30 28. Average Precision
- 02.06.31 29. Mean Average Precision — MAP
- 02.06.32 30. MRR vs. MAP vs. NDCG
- 02.06.33 31. Precision@K vs. NDCG@K
- 02.06.34 32. Metrics Depend on the Task
- 02.06.35 33. Retrieval Evaluation for Multi-Stage Systems
- 02.06.36 34. Evaluation of a Reranker
- 02.06.37 35. Evaluation of Candidate Generation
- 02.06.38 36. What Is a Test Query Set?
- 02.06.39 37. Query Diversity Matters
- 02.06.40 38. Offline Evaluation
- 02.06.41 39. Online Evaluation
- 02.06.42 40. Clicks Are Not Pure Relevance Labels
- 02.06.43 41. Offline Metrics vs. Online Success
- 02.06.44 42. Evaluation Metrics Are Not Product Goals
- 02.06.45 43. Retrieval Evaluation in RAG
- 02.06.46 44. Context Recall
- 02.06.47 45. Context Precision
- 02.06.48 46. Retrieval Metrics and AI Visibility
- 02.06.49 47. Retrieval Presence vs. Final Answer Presence
- 02.06.50 48. No Single Metric Tells the Whole Story
- 02.06.51 49. A Practical Metric Stack
- 02.06.52 50. A Complete Simplified Evaluation Example
- 02.06.53 51. Common Misunderstandings
- 02.06.54 52. How the Concepts Connect
- 02.06.55 Mental Model
- 02.06.56 Chapter 12 Recap
- 02.06.57 The Single Most Important Idea from Chapter 12
03 Part III — Retrieval Augmented Generation (RAG)
03.01 Chapter 13- Why LLMs Need Retrieval
- 03.01.01 Chapter Goal
- 03.01.02 Chapter Contents
- 03.01.03 13.1 Limitations of Model Knowledge
- 03.01.04 2. Training Cutoff
- 03.01.05 3. Training Cutoff Does Not Mean the AI System Cannot Access New Information
- 03.01.06 4. Knowledge Freshness
- 03.01.07 5. Training Cutoff vs. Knowledge Freshness
- 03.01.08 6. Missing Knowledge
- 03.01.09 7. Learning Something Is Not the Same as Storing It Perfectly
- 03.01.10 8. Private Knowledge
- 03.01.11 9. Public Knowledge vs. Private Knowledge
- 03.01.12 10. Long-Tail Knowledge
- 03.01.13 11. Why Long-Tail Knowledge Matters for AI Visibility
- 03.01.14 12. Five Major Limitations of Internal Model Knowledge
- 03.01.15 13.2 External Information
- 03.01.16 14. Parametric Knowledge vs. External Knowledge
- 03.01.17 15. Retrieval as a Bridge
- 03.01.18 16. Retrieval at Inference Time
- 03.01.19 17. Web Search
- 03.01.20 18. Web Search Is Not the Same as the LLM
- 03.01.21 19. Knowledge Base
- 03.01.22 20. Web Search vs. Knowledge Base Retrieval
- 03.01.23 21. External Information Does Not Automatically Become Model Knowledge
- 03.01.24 22. Retrieval Can Provide Evidence, Not Just Facts
- 03.01.25 13.3 Search Augmentation
- 03.01.26 24. Search Augmentation
- 03.01.27 25. Why Search Augmentation Matters
- 03.01.28 26. Search-Augmented Generation
- 03.01.29 27. Search-Augmented Generation vs. Ordinary Search
- 03.01.30 28. Retrieval-Augmented Generation
- 03.01.31 29. Search-Augmented Generation vs. Retrieval-Augmented Generation
- 03.01.32 30. RAG Does Not Give the Model Permanent New Knowledge
- 03.01.33 31. Internal Knowledge and Retrieved Knowledge Can Work Together
- 03.01.34 32. Retrieval Changes the Source of the Answer
- 03.01.35 33. Retrieval Can Reduce Some Hallucination Risk
- 03.01.36 34. The Quality of RAG Depends on Retrieval
- 03.01.37 35. Retrieval Is Not Automatically Grounding
- 03.01.38 36. Why RAG Is So Important for Private Systems
- 03.01.39 37. Why RAG Is Important for Fresh Information
- 03.01.40 38. Why RAG Is Important for Long-Tail Information
- 03.01.41 39. What Retrieval Does Not Solve
- 03.01.42 40. A Complete Example: Current Public Knowledge
- 03.01.43 41. A Complete Example: Private Knowledge
- 03.01.44 42. A Complete Example: Long-Tail Knowledge
- 03.01.45 43. The Core Architectural Shift
- 03.01.46 44. Why This Matters for AI Search
- 03.01.47 45. Common Misunderstandings
- 03.01.48 46. How the Concepts Connect
- 03.01.49 Mental Model
- 03.01.50 Chapter 13 Recap
- 03.01.51 The Single Most Important Idea from Chapter 13
03.02 Chapter 14- RAG Fundamentals
- 03.02.01 Chapter Goal
- 03.02.02 Chapter Contents
- 03.02.03 14.1 Retrieval-Augmented Generation
- 03.02.04 2. Why “Augmented” Matters
- 03.02.05 3. RAG Is a System Architecture, Not Just an LLM Feature
- 03.02.06 4. The Two Main Components
- 03.02.07 5. What Is the Retriever?
- 03.02.08 6. The Retriever Does Not Generate the Final Answer
- 03.02.09 7. What Is the Generator?
- 03.02.10 8. Generator Does Not Mean “Source of All Knowledge”
- 03.02.11 9. Retriever vs. Generator
- 03.02.12 10. Retrieval Failure vs. Generation Failure
- 03.02.13 14.2 Basic Architecture
- 03.02.14 12. Step 1 — User Query
- 03.02.15 13. Step 2 — Retrieval
- 03.02.16 14. Step 3 — Relevant Documents or Passages
- 03.02.17 15. Why RAG Often Uses Passages Instead of Entire Documents
- 03.02.18 16. Step 4 — LLM Context
- 03.02.19 17. Step 5 — Generation
- 03.02.20 18. The Full Basic Architecture
- 03.02.21 19. Retrieval Happens Before Generation in the Basic Model
- 03.02.22 20. One Query Can Retrieve Multiple Pieces of Information
- 03.02.23 21. The Retrieved Result Is Not Automatically the Final Context
- 03.02.24 14.3 Retrieval Context
- 03.02.25 23. Retrieved Context Is Part of the Current Input
- 03.02.26 24. External Context
- 03.02.27 25. Retrieved Context vs. External Context
- 03.02.28 26. What Is Context Injection?
- 03.02.29 27. Context Injection Is Not Parameter Injection
- 03.02.30 28. Retrieved Text Becomes Tokens Like Other Input
- 03.02.31 29. The Context Window Still Applies
- 03.02.32 30. Evidence Context
- 03.02.33 31. Not Every Retrieved Passage Is Good Evidence
- 03.02.34 32. Retrieved Context Can Change the Answer Without Changing the Model
- 03.02.35 33. Context Makes External Knowledge Usable
- 03.02.36 14.4 Grounded Generation
- 03.02.37 35. Grounding Is Not a Separate Checking Stage
- 03.02.38 36. Grounded Generation
- 03.02.39 37. What Is a Grounded Answer?
- 03.02.40 38. Grounded Does Not Automatically Mean Factually True
- 03.02.41 39. Good RAG Requires Both Good Retrieval and Good Generation
- 03.02.42 40. RAG Does Not Automatically Force the LLM to Use Context Correctly
- 03.02.43 41. Internal Knowledge Can Conflict with Retrieved Context
- 03.02.44 42. Grounding Depends on Evidence Availability
- 03.02.45 43. The Generator Should Know the Difference Between Evidence and Instructions
- 03.02.46 44. A Complete RAG Example — Private Knowledge Base
- 03.02.47 45. A Complete RAG Example — Current Web Information
- 03.02.48 46. RAG as a Pipeline of Information Transformation
- 03.02.49 47. Where RAG Can Fail
- 03.02.50 48. Why RAG Matters for AI Visibility
- 03.02.51 49. RAG Is Not the Same as Search
- 03.02.52 50. RAG Is Not the Same as Fine-Tuning
- 03.02.53 51. RAG Is Not the Same as a Larger Context Window
- 03.02.54 52. RAG Is Not the Same as Memory
- 03.02.55 53. Common Misunderstandings
- 03.02.56 54. How the Concepts Connect
- 03.02.57 Mental Model
- 03.02.58 Chapter 14 Recap
- 03.02.59 The Single Most Important Idea from Chapter 14
03.03 Chapter 15- Preparing Information for Retrieval
- 03.03.01 Chapter Goal
- 03.03.02 Chapter Contents
- 03.03.03 15.1 Document Processing
- 03.03.04 2. Why Raw Documents Need Processing
- 03.03.05 3. Document Structure
- 03.03.06 4. Why Document Structure Matters for Retrieval
- 03.03.07 5. What Is Parsing?
- 03.03.08 6. Parsing Is Not Retrieval
- 03.03.09 7. Poor Parsing Can Damage Retrieval
- 03.03.10 8. What Is a Passage?
- 03.03.11 9. Document Retrieval vs. Passage Retrieval
- 03.03.12 15.2 Chunking
- 03.03.13 11. Passage vs. Chunk
- 03.03.14 12. What Is Chunking?
- 03.03.15 13. Why Chunking Is Necessary
- 03.03.16 14. Chunk Size
- 03.03.17 15. What Happens When Chunks Are Too Large?
- 03.03.18 16. What Happens When Chunks Are Too Small?
- 03.03.19 17. The Chunk-Size Trade-Off
- 03.03.20 18. Chunk Boundaries Matter
- 03.03.21 19. What Is Chunk Overlap?
- 03.03.22 20. Why Use Chunk Overlap?
- 03.03.23 21. More Overlap Is Not Always Better
- 03.03.24 15.3 Metadata
- 03.03.25 23. Common Metadata Fields
- 03.03.26 24. Document Metadata
- 03.03.27 25. Why Metadata Matters
- 03.03.28 26. Metadata Filtering
- 03.03.29 27. Metadata Filtering Example
- 03.03.30 28. Metadata Is Not the Same as Content
- 03.03.31 15.4 Indexing
- 03.03.32 30. Chunk Embedding
- 03.03.33 31. Why Embed Chunks?
- 03.03.34 32. One Document Can Produce Many Embeddings
- 03.03.35 33. Embedding Model
- 03.03.36 34. Vector Database
- 03.03.37 35. Vector Database Is Not the Same as Embedding Model
- 03.03.38 36. What Is a Search Index?
- 03.03.39 37. Vector Database vs. Search Index
- 03.03.40 38. Metadata and Embeddings Can Be Stored Together
- 03.03.41 39. The Complete Preparation Pipeline
- 03.03.42 40. What Happens Later at Query Time?
- 03.03.43 41. Preparation Quality Affects Retrieval Quality
- 03.03.44 42. A Complete Example
- 03.03.45 43. Common Misunderstandings
- 03.03.46 44. How the Concepts Connect
- 03.03.47 Mental Model
- 03.03.48 Chapter 15 Recap
- 03.03.49 The Single Most Important Idea from Chapter 15
03.04 Chapter 16- Query Understanding
- 03.04.01 Chapter Goal
- 03.04.02 Chapter Contents
- 03.04.03 16.1 Query Interpretation
- 03.04.04 2. Why Query Understanding Matters
- 03.04.05 3. Query Interpretation
- 03.04.06 4. Query Interpretation Can Use Context
- 03.04.07 5. What Is Search Intent?
- 03.04.08 6. Common Search Intent Patterns
- 03.04.09 7. Intent Can Be Mixed
- 03.04.10 8. What Is Intent Classification?
- 03.04.11 9. Intent Classification Is Not Perfect Understanding
- 03.04.12 10. Interpretation Before Retrieval
- 03.04.13 16.2 Query Rewriting
- 03.04.14 12. Why Rewrite a Query?
- 03.04.15 13. Query Rewriting Example
- 03.04.16 14. Rewriting Can Make Conversational Queries Self-Contained
- 03.04.17 15. What Is Query Reformulation?
- 03.04.18 16. Good Rewriting Preserves Intent
- 03.04.19 17. Rewriting Can Also Fail
- 03.04.20 16.3 Query Expansion
- 03.04.21 19. Query Rewriting vs. Query Expansion
- 03.04.22 20. Synonym Expansion
- 03.04.23 21. Why Synonym Expansion Helps Lexical Retrieval
- 03.04.24 22. Synonyms Are Context-Dependent
- 03.04.25 23. What Is Semantic Expansion?
- 03.04.26 24. Semantic Expansion Example
- 03.04.27 25. Expansion Can Improve Recall
- 03.04.28 26. Expansion Can Introduce Noise
- 03.04.29 16.4 Query Decomposition
- 03.04.30 28. Why Decompose a Query?
- 03.04.31 29. What Is a Subquery?
- 03.04.32 30. Good Subqueries Should Preserve the Original Task
- 03.04.33 31. Decomposition Is Especially Useful for Multi-Part Questions
- 03.04.34 16.5 Query Fan-Out
- 03.04.35 33. Why Fan Out a Query?
- 03.04.36 34. Query Fan-Out vs. Query Decomposition
- 03.04.37 35. Multiple Search Queries
- 03.04.38 36. Why Multiple Queries Can Help
- 03.04.39 37. Parallel Retrieval
- 03.04.40 38. Parallel Does Not Mean the Queries Are Identical
- 03.04.41 39. Fan-Out Can Increase Both Coverage and Noise
- 03.04.42 16.6 Multi-Query Retrieval
- 03.04.43 41. What Is a Query Variant?
- 03.04.44 42. Why Query Variants Matter
- 03.04.45 43. Multi-Query Retrieval Example
- 03.04.46 44. Multi-Query Retrieval vs. Query Expansion
- 03.04.47 45. Multi-Query Retrieval vs. Fan-Out
- 03.04.48 46. Query Decomposition vs. Fan-Out vs. Multi-Query Retrieval
- 03.04.49 47. Query Processing Does Not Replace Retrieval
- 03.04.50 48. A Complete Example
- 03.04.51 49. Common Misunderstandings
- 03.04.52 50. How the Concepts Connect
- 03.04.53 Mental Model
- 03.04.54 Chapter 16 Recap
- 03.04.55 The Single Most Important Idea from Chapter 16
03.05 Chapter 17- Building the Context for the LLM
- 03.05.01 Chapter Goal
- 03.05.02 Chapter Contents
- 03.05.03 17.1 Context Selection
- 03.05.04 2. Why Context Selection Is Necessary
- 03.05.05 3. Retrieval Candidates vs. Final Context
- 03.05.06 4. What Is Passage Selection?
- 03.05.07 5. Passage Selection Is Query-Dependent
- 03.05.08 6. What Is Relevance Filtering?
- 03.05.09 7. Retrieval Ranking vs. Relevance Filtering
- 03.05.10 8. Why Retrieved Results May Still Need Filtering
- 03.05.11 9. Context Selection Is Not the Same as Retrieval
- 03.05.12 17.2 Context Budget
- 03.05.13 11. Context Window Review
- 03.05.14 12. Why Not Put Everything Into the Context?
- 03.05.15 13. What Is Context Allocation?
- 03.05.16 14. Retrieval Competes With Other Context
- 03.05.17 15. What Is Context Competition?
- 03.05.18 16. Context Competition Is Not Only About Token Limits
- 03.05.19 17. Duplicate Information Also Uses Budget
- 03.05.20 18. Context Budget Creates a Selection Problem
- 03.05.21 17.3 Context Compression
- 03.05.22 20. Why Context Compression Is Useful
- 03.05.23 21. Compression Is Different From Dropping Everything
- 03.05.24 22. What Is Summarized Context?
- 03.05.25 23. Summarization Can Lose Important Details
- 03.05.26 24. What Is Relevant Passage Extraction?
- 03.05.27 25. Summarization vs. Relevant Passage Extraction
- 03.05.28 26. Extraction Can Preserve Original Wording
- 03.05.29 27. Compression Happens After Retrieval
- 03.05.30 17.4 Evidence Retrieval
- 03.05.31 29. Relevant Information vs. Supporting Evidence
- 03.05.32 30. What Is Supporting Passage Retrieval?
- 03.05.33 31. Supporting Passages Can Come From Multiple Sources
- 03.05.34 32. What Is Evidence Candidate Selection?
- 03.05.35 33. Context Selection vs. Evidence Selection
- 03.05.36 34. Evidence Selection Is Not Always a Separate Stage
- 03.05.37 35. Evidence Retrieval Does Not Guarantee Correct Evidence
- 03.05.38 36. The Full Context-Building Pipeline
- 03.05.39 37. A Complete Example
- 03.05.40 38. Why This Stage Matters for RAG
- 03.05.41 39. Why This Matters for AI Visibility
- 03.05.42 40. Common Misunderstandings
- 03.05.43 41. How the Concepts Connect
- 03.05.44 Mental Model
- 03.05.45 Chapter 17 Recap
- 03.05.46 The Single Most Important Idea from Chapter 17
04 Part IV — Evidence Claims Grounding & Citations
04.01 Chapter 18- From Source to Evidence
- 04.01.01 Chapter Goal
- 04.01.02 Chapter Contents
- 04.01.03 18.1 Source
- 04.01.04 2. What Is a Source?
- 04.01.05 3. Source vs. Information
- 04.01.06 4. What Is a Source Document?
- 04.01.07 5. One Source Can Contain Many Source Documents
- 04.01.08 6. Source Document vs. Retrieved Document
- 04.01.09 7. What Is a Passage?
- 04.01.10 8. One Document Can Produce Many Passages
- 04.01.11 9. Source Is Not Yet Evidence
- 04.01.12 18.2 Evidence
- 04.01.13 11. What Is a Claim?
- 04.01.14 12. Passage vs. Evidence
- 04.01.15 13. Evidence Is Query- and Claim-Dependent
- 04.01.16 14. What Is Supporting Evidence?
- 04.01.17 15. Evidence Can Be Smaller Than the Retrieved Passage
- 04.01.18 16. Context vs. Evidence Revisited
- 04.01.19 17. What Is Evidence Retrieval?
- 04.01.20 18. Evidence Retrieval vs. General Retrieval
- 04.01.21 19. Evidence Retrieval May Reuse Earlier Retrieval Results
- 04.01.22 20. What Is Evidence Coverage?
- 04.01.23 21. Complete vs. Incomplete Evidence Coverage
- 04.01.24 22. Evidence Coverage vs. Retrieval Recall
- 04.01.25 23. Multiple Pieces of Evidence May Be Needed
- 04.01.26 18.3 Evidence Quality
- 04.01.27 25. What Is Relevant Evidence?
- 04.01.28 26. Topical Relevance Is Not Enough
- 04.01.29 27. What Is Sufficient Evidence?
- 04.01.30 28. Relevant Evidence vs. Sufficient Evidence
- 04.01.31 29. Sufficiency Depends on the Claim
- 04.01.32 30. Evidence Can Support Only Part of a Statement
- 04.01.33 31. What Is Conflicting Evidence?
- 04.01.34 32. Why Conflicting Evidence Matters
- 04.01.35 33. Conflict Can Be Real or Apparent
- 04.01.36 34. Metadata Can Help Explain Conflicts
- 04.01.37 35. More Evidence Does Not Automatically Mean Better Evidence
- 04.01.38 36. A Complete Source-to-Evidence Example
- 04.01.39 37. The Full Source-to-Evidence Pipeline
- 04.01.40 38. Evidence Is a Role, Not a Special File Type
- 04.01.41 39. Why This Matters for RAG
- 04.01.42 40. Why This Matters for AI Visibility
- 04.01.43 41. Common Misunderstandings
- 04.01.44 42. How the Concepts Connect
- 04.01.45 Mental Model
- 04.01.46 Chapter 18 Recap
- 04.01.47 The Single Most Important Idea from Chapter 18
04.02 Chapter 19- Claims
- 04.02.01 Chapter Goal
- 04.02.02 Chapter Contents
- 04.02.03 19.1 Claim Fundamentals
- 04.02.04 2. Who Makes the Claim?
- 04.02.05 3. Claim Is Not the Same as the Whole Answer
- 04.02.06 4. One Sentence Can Contain Multiple Claims
- 04.02.07 5. Claims Can Have Different Levels of Specificity
- 04.02.08 6. Small Wording Changes Can Change a Claim
- 04.02.09 7. What Is Claim Extraction?
- 04.02.10 8. Why Claim Extraction Matters
- 04.02.11 9. Claim Extraction Does Not Create New Facts
- 04.02.12 10. What Is Claim Generation?
- 04.02.13 11. Generation Can Transform the Evidence
- 04.02.14 12. Claim Generation Can Introduce Unsupported Information
- 04.02.15 13. Generated Claims Can Combine Multiple Evidence Pieces
- 04.02.16 19.2 Claim–Source Relationship
- 04.02.17 15. Source Presence Does Not Mean Claim Support
- 04.02.18 16. What Is Source Support?
- 04.02.19 17. Source Support Is Usually Passage-Level
- 04.02.20 18. What Is Evidence Support?
- 04.02.21 19. Source Support vs. Evidence Support
- 04.02.22 20. A Source Can Support One Claim but Not Another
- 04.02.23 21. One Claim Can Require Multiple Sources or Passages
- 04.02.24 22. One Evidence Passage Can Support Multiple Claims
- 04.02.25 23. Claim Support Must Match the Claim's Specificity
- 04.02.26 24. Claim Support Can Fail Through Overstatement
- 04.02.27 19.3 Natural Language Inference
- 04.02.28 26. What Is Entailment?
- 04.02.29 27. Entailment Does Not Require Exact Wording
- 04.02.30 28. Entailment Requires the Whole Claim to Be Supported
- 04.02.31 29. What Is Contradiction?
- 04.02.32 30. Contradiction Requires Matching Conditions
- 04.02.33 31. What Is Neutral?
- 04.02.34 32. Neutral Is Extremely Important
- 04.02.35 33. What Is an Unsupported Claim?
- 04.02.36 34. Unsupported Does Not Automatically Mean False
- 04.02.37 35. Contradicted vs. Unsupported
- 04.02.38 36. Entailment, Contradiction, and Neutral Together
- 04.02.39 37. The Core Model: Evidence → Claim
- 04.02.40 38. Why Strong Claims Should Be Entailed by Evidence
- 04.02.41 39. Claim Support Is Not Based on Similarity Alone
- 04.02.42 40. Claim Support Can Depend on Qualifications
- 04.02.43 41. Claim Support Can Depend on Time
- 04.02.44 42. Claim Support Can Depend on Entity Identity
- 04.02.45 43. A Complete Claim Analysis Example
- 04.02.46 44. Claim-Level Evaluation
- 04.02.47 45. The Full Source-to-Claim Pipeline
- 04.02.48 46. Why This Matters for RAG
- 04.02.49 47. Why This Matters for AI Visibility
- 04.02.50 48. Common Misunderstandings
- 04.02.51 49. How the Concepts Connect
- 04.02.52 Mental Model
- 04.02.53 Chapter 19 Recap
- 04.02.54 The Single Most Important Idea from Chapter 19
04.03 Chapter 20- Grounding and Faithfulness
- 04.03.01 Chapter Goal
- 04.03.02 Chapter Contents
- 04.03.03 20.1 Grounding
- 04.03.04 2. Grounding Is About Support
- 04.03.05 3. Grounding Is Not the Same as Retrieval
- 04.03.06 4. Grounding Is Not Automatically Guaranteed by Context Presence
- 04.03.07 5. Grounding Is Not Necessarily a Separate Post-Generation Stage
- 04.03.08 6. What Is Groundedness?
- 04.03.09 7. Groundedness Can Be Evaluated at Claim Level
- 04.03.10 8. What Is a Grounded Answer?
- 04.03.11 9. Grounded Does Not Mean Copied
- 04.03.12 10. Groundedness Depends on Claim Meaning
- 04.03.13 11. Groundedness and Entailment
- 04.03.14 12. Groundedness Is Evidence-Relative
- 04.03.15 20.2 Faithfulness
- 04.03.16 14. Faithfulness Is About Representation
- 04.03.17 15. What Is Evidence Faithfulness?
- 04.03.18 16. Faithfulness Can Fail Through Overstatement
- 04.03.19 17. Faithfulness Can Fail Through Omitted Conditions
- 04.03.20 18. Faithfulness Can Fail Through Distortion
- 04.03.21 19. Faithfulness vs. Groundedness
- 04.03.22 20. Why Keep Groundedness and Faithfulness Separate?
- 04.03.23 21. Faithfulness Is Also Evidence-Relative
- 04.03.24 20.3 Factuality
- 04.03.25 23. What Is Factual Accuracy?
- 04.03.26 24. Factuality vs. Groundedness
- 04.03.27 25. Grounded and Factually Correct
- 04.03.28 26. Grounded but Factually Incorrect
- 04.03.29 27. Factually Correct but Ungrounded
- 04.03.30 28. Factually Correct Does Not Mean Faithful
- 04.03.31 29. Three Independent Questions
- 04.03.32 30. A Useful Comparison Matrix
- 04.03.33 31. Factuality Requires a Truth Reference
- 04.03.34 32. Factuality Can Be Difficult to Evaluate
- 04.03.35 20.4 Hallucination Revisited
- 04.03.36 34. Unsupported Claim
- 04.03.37 35. Unsupported Claims Can Be Completely Invented
- 04.03.38 36. Unsupported Claims Can Be Subtle
- 04.03.39 37. What Is Source Misinterpretation?
- 04.03.40 38. Source Misinterpretation Can Reverse Meaning
- 04.03.41 39. Source Misinterpretation Can Involve Conditions
- 04.03.42 40. What Is Evidence Misuse?
- 04.03.43 41. Evidence Misuse vs. Source Misinterpretation
- 04.03.44 42. Evidence Misuse Can Involve Wrong Entity Mapping
- 04.03.45 43. Evidence Misuse Can Involve Wrong Time or Version
- 04.03.46 44. What Is Citation Hallucination?
- 04.03.47 45. Citation Hallucination vs. Unsupported Claim
- 04.03.48 46. A Citation Does Not Create Grounding
- 04.03.49 47. Hallucination Can Occur Despite Successful Retrieval
- 04.03.50 48. RAG Reduces Some Risks but Does Not Eliminate Them
- 04.03.51 49. A Complete Grounding Analysis Example
- 04.03.52 50. A Complete Three-Dimension Example
- 04.03.53 51. Another Three-Dimension Example
- 04.03.54 52. Why This Matters for RAG
- 04.03.55 53. Why This Matters for AI Visibility
- 04.03.56 54. Common Misunderstandings
- 04.03.57 55. How the Concepts Connect
- 04.03.58 Mental Model
- 04.03.59 Chapter 20 Recap
- 04.03.60 The Single Most Important Idea from Chapter 20
04.04 Chapter 21— Citations and Attribution
- 04.04.01 Chapter Goal
- 04.04.02 Chapter Contents
- 04.04.03 21.1 Citation
- 04.04.04 2. Citation Is Not the Same as Evidence
- 04.04.05 3. Citation Does Not Create Evidence
- 04.04.06 4. Citation Is Usually Attached to a Claim
- 04.04.07 5. One Citation Can Support Multiple Claims
- 04.04.08 6. One Claim Can Require Multiple Citations
- 04.04.09 7. What Is Citation Selection?
- 04.04.10 8. Citation Selection Is Not the Same as Retrieval
- 04.04.11 9. Citation Selection Is Not the Same as Evidence Selection
- 04.04.12 10. Citation Selection May Prefer the Strongest Supporting Source
- 04.04.13 11. What Is a Citation Source?
- 04.04.14 12. Citation Source vs. Retrieved Source
- 04.04.15 13. Citation Source vs. Original Source
- 04.04.16 21.2 Attribution
- 04.04.17 15. Citation vs. Attribution
- 04.04.18 16. Attribution Can Exist Without Formal Citation
- 04.04.19 17. Citation Can Exist Without Explicit Attribution
- 04.04.20 18. What Is Source Attribution?
- 04.04.21 19. Attribution Should Match the Actual Source
- 04.04.22 20. Attribution Can Change the Meaning of a Claim
- 04.04.23 21. Attribution Is Important for Source-Owned Claims
- 04.04.24 21.3 Provenance
- 04.04.25 23. Citation vs. Provenance
- 04.04.26 24. Why Provenance Matters
- 04.04.27 25. What Is Source Provenance?
- 04.04.28 26. Source Provenance Can Help Resolve Conflicts
- 04.04.29 27. What Is Information Provenance?
- 04.04.30 28. Source Provenance vs. Information Provenance
- 04.04.31 29. Information Can Pass Through Multiple Sources
- 04.04.32 30. Provenance Does Not Automatically Guarantee Truth
- 04.04.33 21.4 Citation Quality
- 04.04.34 32. What Is Citation Accuracy?
- 04.04.35 33. Citation Accuracy Can Include Source Identity
- 04.04.36 34. What Is Citation Correctness?
- 04.04.37 35. Accurate Citation Can Still Be Incorrect Support
- 04.04.38 36. What Is Citation Completeness?
- 04.04.39 37. Citation Completeness Is About Missing Support Links
- 04.04.40 38. Not Every Sentence Necessarily Needs a Citation
- 04.04.41 39. What Is Citation Precision?
- 04.04.42 40. High Citation Precision
- 04.04.43 41. Low Citation Precision
- 04.04.44 42. What Is Citation Recall?
- 04.04.45 43. Citation Precision vs. Citation Recall
- 04.04.46 44. High Precision but Low Recall
- 04.04.47 45. High Recall but Low Precision
- 04.04.48 46. Citation Completeness vs. Citation Recall
- 04.04.49 47. Citation Accuracy vs. Citation Correctness vs. Precision
- 04.04.50 21.5 Citation Fidelity
- 04.04.51 49. Citation Fidelity vs. Accuracy and Correctness
- 04.04.52 50. Citation Fidelity Is More Than Citation Presence
- 04.04.53 51. What Is Source-to-Claim Alignment?
- 04.04.54 52. Poor Source-to-Claim Alignment
- 04.04.55 53. What Is Claim-to-Citation Alignment?
- 04.04.56 54. Poor Claim-to-Citation Alignment
- 04.04.57 55. Source-to-Claim vs. Claim-to-Citation Alignment
- 04.04.58 56. Citation Fidelity Can Fail With Multiple Claims
- 04.04.59 57. Citation Fidelity Can Fail Through Citation Placement
- 04.04.60 58. Citation Fidelity Can Fail Through Source Substitution
- 04.04.61 59. Citation Fidelity and Provenance
- 04.04.62 60. Citation Fidelity and Groundedness
- 04.04.63 61. A Complete Citation Analysis Example
- 04.04.64 62. A Citation Failure Example
- 04.04.65 63. Citation Quantity vs. Citation Quality
- 04.04.66 64. Why This Matters for RAG
- 04.04.67 65. Why This Matters for AI Visibility
- 04.04.68 66. Citation Visibility Does Not Necessarily Mean Recommendation
- 04.04.69 67. Common Misunderstandings
- 04.04.70 68. How the Concepts Connect
- 04.04.71 Mental Model
- 04.04.72 Chapter 21 Recap
- 04.04.73 The Single Most Important Idea from Chapter 21
05 Part V — Entities and Knowledge Representation
05.01 Chapter 22— Entity Fundamentals
- 05.01.01 Chapter Goal
- 05.01.02 Chapter Contents
- 05.01.03 22.1 Entity
- 05.01.04 2. Entity vs. Word
- 05.01.05 3. Entity vs. Entity Mention
- 05.01.06 4. One Entity Can Have Multiple Mentions
- 05.01.07 5. The Same Text Can Potentially Refer to Different Entities
- 05.01.08 6. What Is a Real-World Entity?
- 05.01.09 7. Real-World Entity vs. General Concept
- 05.01.10 8. What Is a Named Entity?
- 05.01.11 9. Named Entity vs. Entity
- 05.01.12 10. Common Entity Types
- 05.01.13 11. Person Entity
- 05.01.14 12. Business Entity
- 05.01.15 13. Organization Entity
- 05.01.16 14. City Entity
- 05.01.17 15. Product Entity
- 05.01.18 16. Brand Entity
- 05.01.19 17. One Text Can Contain Many Entities
- 05.01.20 18. Entity Type Helps Describe What Kind of Thing It Is
- 05.01.21 19. Entity Type Is Not Entity Identity
- 05.01.22 20. Why Entities Matter for Language Understanding
- 05.01.23 22.2 Entity Recognition
- 05.01.24 22. Entity Recognition Works on Text
- 05.01.25 23. What Is Named Entity Recognition?
- 05.01.26 24. NER Identifies Spans of Text
- 05.01.27 25. Entity Span Matters
- 05.01.28 26. NER Usually Produces Type Labels
- 05.01.29 27. Named Entity Recognition Is Not Entity Resolution
- 05.01.30 28. NER Is Not Entity Linking
- 05.01.31 29. What Is Entity Extraction?
- 05.01.32 30. Entity Recognition vs. Entity Extraction
- 05.01.33 31. Entity Recognition Can Produce Structured Output
- 05.01.34 32. Entity Recognition Does Not Mean Full Understanding
- 05.01.35 33. Entity Recognition Can Depend on Context
- 05.01.36 34. Recognition Errors Can Change Meaning
- 05.01.37 35. Missing an Entity Can Also Cause Problems
- 05.01.38 36. Entity Recognition in Documents
- 05.01.39 37. Entity Recognition in Queries
- 05.01.40 38. Entity Recognition in Search
- 05.01.41 39. Entity Recognition in AI Answers
- 05.01.42 40. Recognition Is Only the Beginning
- 05.01.43 22.3 Entity Salience
- 05.01.44 42. Not All Recognized Entities Are Equally Important
- 05.01.45 43. What Is a Primary Entity?
- 05.01.46 44. What Is a Secondary Entity?
- 05.01.47 45. Primary and Secondary Are Context-Dependent
- 05.01.48 46. Salience Is Not the Same as Frequency
- 05.01.49 47. Salience Is Not the Same as Position
- 05.01.50 48. Salience Depends on the Role of the Entity
- 05.01.51 49. A Document Can Have More Than One Important Entity
- 05.01.52 50. Entity Salience Can Change at Passage Level
- 05.01.53 51. Query Context Can Also Affect Salience
- 05.01.54 52. Primary Entity vs. Main Topic
- 05.01.55 53. Entity vs. Topic
- 05.01.56 54. Entity Salience Helps Summarize What Content Is About
- 05.01.57 55. Entity Salience and Retrieval
- 05.01.58 56. Entity Salience and AI Visibility
- 05.01.59 57. Mention Visibility vs. Entity Salience
- 05.01.60 58. Primary Entity in an AI Answer
- 05.01.61 59. Salience Does Not Mean Positive Sentiment
- 05.01.62 60. Salience Does Not Mean Authority
- 05.01.63 61. A Complete Entity Analysis Example
- 05.01.64 62. Another Example: Local Business Content
- 05.01.65 63. Entity Recognition and AI Search
- 05.01.66 64. Entity Salience and AI Search
- 05.01.67 65. Why This Matters for AI Visibility
- 05.01.68 66. Entity Recognition Is Not Yet Entity Identity
- 05.01.69 67. Common Misunderstandings
- 05.01.70 68. How the Concepts Connect
- 05.01.71 Mental Model
- 05.01.72 Chapter 22 Recap
- 05.01.73 The Single Most Important Idea from Chapter 22
05.02 Chapter 23— Entity Identity
- 05.02.01 Chapter Goal
- 05.02.02 Chapter Contents
- 05.02.03 23.1 Entity Resolution — Recognizing the Same Entity Across Different Names
- 05.02.04 23.2 Entity Disambiguation — Identifying the Intended Entity
- 05.02.05 23.3 Entity Linking — Connecting a Mention to a Known Entity
- 05.02.06 23.4 Entity Matching and Reconciliation — Aligning Information Across Sources
- 05.02.07 Practical Example — How Entity Identity Affects an AI Answer
- 05.02.08 Chapter 23 Recap
- 05.02.09 The Single Most Important Idea from Chapter 23
05.03 Chapter 24— Entity Attributes and Relationships
- 05.03.01 Chapter Goal
- 05.03.02 Chapter Contents
- 05.03.03 24.1 Entity Attributes
- 05.03.04 24.2 Entity Relationships
- 05.03.05 24.3 Entity Associations
- 05.03.06 24.4 Semantic Relationships
- 05.03.07 Practical Example — How These Concepts Work Together
- 05.03.08 Chapter 24 Recap
- 05.03.09 The Single Most Important Idea from Chapter 24
05.04 Chapter 25— Knowledge Representation
- 05.04.01 Chapter Goal
- 05.04.02 Chapter Contents
- 05.04.03 25.1 Triple — Representing a Fact
- 05.04.04 25.2 Taxonomy and Ontology — Organizing Knowledge
- 05.04.05 25.3 Schema — Defining a Consistent Structure
- 05.04.06 25.4 Knowledge Base — Organizing Known Information
- 05.04.07 25.5 Knowledge Graph — Connecting Information
- 05.04.08 Practical Example — From Business Information to an AI Answer
- 05.04.09 Chapter 25 Recap
- 05.04.10 The Single Most Important Idea from Chapter 25
05.05 Chapter 26— Structured Web Knowledge
- 05.05.01 Chapter Goal
- 05.05.02 Chapter Contents
- 05.05.03 26.1 Structured Data — Making Website Information Machine-Readable
- 05.05.04 26.2 Schema.org — A Shared Vocabulary for Describing Entities
- 05.05.05 26.3 Entity Identity Signals — Helping Systems Recognize the Same Business
- 05.05.06 26.4 Entity Reconciliation Across Sources — Maintaining Consistent Business Information
- 05.05.07 Practical Example — Building a Consistent Web Presence
- 05.05.08 Chapter 26 Recap
- 05.05.09 The Single Most Important Idea from Chapter 26
06 Part VI — Search Web Search & AI Search Architecture
06.01 Chapter 27— How Web Search Finds Information
- 06.01.01 Chapter Goal
- 06.01.02 Chapter Contents
- 06.01.03 27.1 URL Discovery — How Search Engines Find Pages
- 06.01.04 27.2 Crawling — How Search Engines Access Pages
- 06.01.05 27.3 Parsing and Indexing — Turning Webpages into Searchable Information
- 06.01.06 27.4 Freshness — How Search Engines Handle Updated Information
- 06.01.07 27.5 Retrieval — Finding Relevant Information for a Search Query
- 06.01.08 Practical Example — From a Published Page to a Search Result
- 06.01.09 Chapter 27 Recap
- 06.01.10 The Single Most Important Idea from Chapter 27
06.02 Chapter 28— Modern AI Search Pipeline
- 06.02.01 Chapter Goal
- 06.02.02 Chapter Contents
- 06.02.03 28.1 Query Understanding — Deciding What to Search For
- 06.02.04 28.2 Retrieval and Ranking — Finding the Most Relevant Sources
- 06.02.05 28.3 Passage Selection — Turning Retrieved Content into Evidence
- 06.02.06 28.4 Answer Generation — From Evidence to Claims and Citations
- 06.02.07 Practical Example — Following One Question Through the Entire Pipeline
- 06.02.08 Chapter 28 Recap
- 06.02.09 The Single Most Important Idea from Chapter 28
06.03 Chapter 29— Source Discovery and Selection
- 06.03.01 Chapter Goal
- 06.03.02 Chapter Contents
- 06.03.03 29.1 Source Discovery and Eligibility — Can the System Use Your Content?
- 06.03.04 29.2 Source Relevance — Does the Source Answer the Question?
- 06.03.05 29.3 Source Authority — Who Should We Trust for This Information?
- 06.03.06 29.4 Source Freshness — Is the Information Still Accurate?
- 06.03.07 29.5 Source Diversity and Consensus — What Do Other Sources Say?
- 06.03.08 Practical Example — Why One Source Is Selected and Another Is Ignored
- 06.03.09 Chapter 29 Recap
- 06.03.10 The Single Most Important Idea from Chapter 29
06.04 Chapter 30— Web Grounding
- 06.04.01 Chapter Goal
- 06.04.02 Chapter Contents
- 06.04.03 30.1 Web Search Grounding — Connecting AI Answers to Web Information
- 06.04.04 30.2 Search-Augmented Generation — Combining Search with LLM Generation
- 06.04.05 30.3 Browsing and Browser Tools — Going Beyond Search Results
- 06.04.06 30.4 Grounded Search Answers — Supporting Claims with Evidence
- 06.04.07 Practical Example — From Web Search to a Grounded AI Answer
- 06.04.08 Chapter 30 Recap
- 06.04.09 The Single Most Important Idea from Chapter 30