Skip to content

Glossary: Fine-tuning LLMs

difflib.get_close_matches

Also written: difflib

A Python standard-library function that returns the most similar strings from a list, if they are similar enough. It can snap "Espresso" to "House Espresso" and let code drop names that match nothing, such as unknown products.

Where the book teaches it

Related terms

Post-processing cleanupRule check