AI Cost Save
AICostSave

Embeddings

Embeddings turn text into vectors for search and retrieval. They're usually far cheaper per token than generation.

Definition

Embeddings are numeric vectors that represent the meaning of text. They power semantic search and retrieval.

Why it matters for cost

Embedding models are typically much cheaper per token than chat or generation models. Using embeddings for retrieval—then generating only on the matched chunks—keeps generation token counts low.

Practical tip

Cache embeddings for stable documents so you don't re-embed the same content on every request.

Related reading