CacheStats

org.llm4s.llmconnect.caching.CacheStats
See theCacheStats companion object
@Stable
final case class CacheStats

Statistics of an EmbeddingCache.

Value parameters

hits

total number of lookups that found a vector

misses

total number of lookups that did not

size

current number of entries in the cache

Attributes

Companion
object
Source
EmbeddingCache.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

The share of lookups served from the cache, 0.0 to 100.0; 0.0 before the first lookup.

The share of lookups served from the cache, 0.0 to 100.0; 0.0 before the first lookup.

Attributes

Source
EmbeddingCache.scala

hits + misses.

hits + misses.

Attributes

Source
EmbeddingCache.scala
def withHits(hits: Long): CacheStats

Attributes

Source
EmbeddingCache.scala
def withMisses(misses: Long): CacheStats

Attributes

Source
EmbeddingCache.scala
def withSize(size: Int): CacheStats

Attributes

Source
EmbeddingCache.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product