Lesson 4.1

Grounding answers with citations

An answer the user can verify is worth far more than a confident one. Carry identifiers through retrieval so every claim can point back to a source.

Duration
7m
Level
Advanced
Students
4.9k students

Overview

An answer the user can verify is worth far more than a confident one. Carry identifiers through retrieval so every claim can point back to a source.

In this lesson you will:

  • Instruct the model to answer only from context
  • Thread source ids through to the rendered answer
  • Make citations clickable back to the original

Resources

Sanity Context and content APIs

The official reference for the tools used in this lesson.