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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product