WeightedScore
org.llm4s.vectorstore.FusionStrategy.WeightedScore
final case class WeightedScore(vectorWeight: Double, keywordWeight: Double) extends FusionStrategy
Weighted score combination.
Normalizes scores from each source to [0, 1] and combines with weights. Score = vectorWeight * normalizedVectorScore + keywordWeight * normalizedKeywordScore
Value parameters
- keywordWeight
-
Weight for keyword matching (default: 0.5)
- vectorWeight
-
Weight for vector similarity (default: 0.5)
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait FusionStrategyclass Objecttrait Matchableclass Any
Members list
In this article