Skip to content

Glossary: Building with LLMs Basics

Counter

Also written: collections.Counter

A Python class from `collections` that counts how often each item appears. In an evaluation it can tally (expected, got) pairs to show which mix-ups happen most.

Where the book teaches it

Related terms

Harness