liveBook · Manning

Semantic evaluation

Semantic evaluation assesses whether content conveys accurate, appropriate, or intended meaning rather than relying solely on wording or surface similarity.

How 2 Manning books explain it

Building LLM Applications with DSPy

A technique for evaluating whether texts express similar meanings without requiring similar wording.

How it is used
Compares generated summaries with ground-truth summaries when matching words cannot reliably establish matching meaning.
How deep it goes
Defines meaning-based comparison and identifies embeddings and LLM judges, while deferring judge-prompt implementation.
Examples
Uses paired plausible summaries of literary works to show why a document may have multiple valid summaries.
What you can do after
Evaluate/understand when meaning-based comparison is needed and which criteria an LLM judge should prioritize.

Read how Building LLM Applications with DSPy explains semantic evaluation →

Machine Learning Platform Engineering

Semantic correctness is the degree to which generated content conveys the intended meaning accurately.

How it is used
Evaluates LLM responses when nondeterministic outputs make exact-string assertions inadequate.
How deep it goes
Defines semantic, factual, and guideline-based assessment but stops short of specifying detailed scoring procedures.
Examples
Uses a RAG documentation assistant and DeepEval to illustrate evaluation of variable but potentially valid responses.
What you can do after
Apply it via DeepEval to assess LLM responses beyond exact string matching.

Read how Machine Learning Platform Engineering explains semantic evaluation →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.