InMemoryEmbeddingCache
org.llm4s.llmconnect.caching.InMemoryEmbeddingCache
class InMemoryEmbeddingCache[Embedding](maxSize: Int) extends EmbeddingCache[Embedding]
Thread-safe in-memory implementation of EmbeddingCache with LRU eviction.
- @param maxSize The maximum number of embeddings to store before evicting the oldest.
Type parameters
- Embedding
-
The embedding type (usually Seq[Double]).
Attributes
- Graph
-
- Supertypes
Members list
In this article