InMemoryEmbeddingCache

org.llm4s.llmconnect.caching.InMemoryEmbeddingCache
See theInMemoryEmbeddingCache companion class

Attributes

Companion
class
Source
InMemoryEmbeddingCache.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

An in-memory cache, or a ValidationError naming every invalid argument.

An in-memory cache, or a ValidationError naming every invalid argument.

Value parameters

clock

defaults to the system clock in UTC; tests pass a fixed, movable one

maxSize

must be positive; defaults to 10 000

ttl

when given, must be positive; defaults to no expiry

Attributes

Source
InMemoryEmbeddingCache.scala