Errata

Hands-On RAG for Production

Errata for Hands-On RAG for Production

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
O'Reilly learning platform
Page Section "Basic retrieval metrics: Precision, recall, and F1-score"
Under "Recall@k"

Under "recall@k" it says "This metric answers a different question, namely “Of all the chunks in my entire dataset that are relevant to the query, how many did my retriever find in the top k results?”, which is fine.
After that, the equation that shows is precision@k instead of recall@k.

Equation should reflect the correct equation - like this:
recall@k = a division of two items
numerator should be: "|relevant cℎunks in top− K|"
Denominator should be "all relevant cℎunks in tℎe collection"

I wish I could attach an image here. Our QC1 PDF has the right formula.

Ofer Mendelevitch
 
Jul 12, 2026  Aug 14, 2026
Printed
Page page 116
middle of the page

Remove "you e" after the curly brace at the end of the code section beginning with: anonymized_result = anonymizer.anonymize(

Anonymous  Sep 14, 2026