Skip to main content

agrag.embedding.base.NullEmbeddingCache

Bases: EmbeddingCache

A cache that never stores anything. The default when none is injected.

Functions:

  • get – Always miss.
  • set – Do nothing.

get​

get(*, text:str, model:str, normalize:bool) -> list[float] | None

Always miss.

set​

set(*, text:str, model:str, normalize:bool, vector:list[float]) -> None

Do nothing.