liveBook · Manning

Grounding

As explained in AI Agents in Action

Grounding is the assessment of how well a prompt or agent profile satisfies criteria for being constrained by relevant information or facts.

Grounding measures how closely a prompt, agent profile, or response fits the relevant rubric criteria, objectives, context, and instructions. A well-grounded result stays on topic and meets the specified standards; a poorly grounded result misses them. section 9.5

A practical grounding workflow includes:

  • Define the purpose, objectives, and rubric criteria for the prompt or profile. section 9.5
  • Score each criterion, using summed or weighted totals when appropriate. section 9.5
  • Evaluate recommendations manually or with a second LLM prompt, then review results for consistency and iterate on the rubric. section 9.5 section 9.6

Grounding a recommender

A recommender produces three items for specified subjects, formats, and genres. An evaluation prompt scores each recommendation against the rubric; an example output rates The Butterfly Effect, Primer, and Time Bandits on subject, format, and genre. Prompt flow can run the evaluation automatically after generation. section 9.5 section 9.6

Table 9.2 Rubric ratings
Rating
Description
1
Poor alignment: this is the opposite of what is expected given the criteria.
2
Bad alignment: this isn’t a good fit for the given criteria.
3
Mediocre alignment: it may or may not fit well with the given criteria.
4
Good alignment: it may not align 100% with the criteria but is a good fit otherwise.
5
Excellent alignment: this is a good recommendation for the given criteria.

Use the rating table to distinguish poor, bad, mediocre, good, and excellent alignment. section 9.5

How AI Agents in Action covers it

How deep it goes
Explains alignment, scoring, consistency, and iteration, then demonstrates automatic evaluation with a second LLM prompt.
Examples
Uses a recommender, rubric ratings, evaluation prompts, and scored recommendations such as The Butterfly Effect, Primer, and Time Bandits.
What it assumes
Assumes a prompt or agent profile and defined rubric, while introducing grounding as their baseline expectation.
What you can do after
Evaluate/understand recommendation quality manually or automatically and compare prompt or profile performance against a repeatable baseline.
How it connects
Connects rubrics, prompt engineering, agent profiles, prompt flow, evaluation flows, and LLM evaluation.

Also explained in

Compare how 8 books explain grounding →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents in Action. The section links point to the parts of the book it draws on.