org.llm4s.context.tokens.TokenizerAccuracy
See theTokenizerAccuracy companion trait
object TokenizerAccuracy
Accuracy level variants for tokenizer mappings.
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TokenizerAccuracy.type
Members list
Type members
Classlikes
case class Approximate(description: String, accuracy: Double) extends TokenizerAccuracy
Approximate tokenizer (Anthropic, Ollama). Token counts may differ by the specified accuracy percentage.
Approximate tokenizer (Anthropic, Ollama). Token counts may differ by the specified accuracy percentage.
Value parameters
- accuracy
-
Expected accuracy as a decimal (0.75 = 75% accurate)
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TokenizerAccuracyclass Objecttrait Matchableclass AnyShow all
case class Exact(description: String) extends TokenizerAccuracy
Exact tokenizer available (OpenAI, Azure). Token counts will match actual API usage.
Exact tokenizer available (OpenAI, Azure). Token counts will match actual API usage.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TokenizerAccuracyclass Objecttrait Matchableclass AnyShow all
case class Unknown(description: String) extends TokenizerAccuracy
Unknown model, using fallback tokenizer. Token counts are best-effort estimates.
Unknown model, using fallback tokenizer. Token counts are best-effort estimates.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TokenizerAccuracyclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
In this article