Skip to content

Glossary: Embeddings and Vector Search

@cache

Also written: functools.cache, cache

A Python decorator from `functools` that remembers a function's result. In `kc.py` it makes the embedding model load only once.

Where the book teaches it