fusion

package
v2.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FusionResult

type FusionResult struct {
	Hits     search.DocumentMatchCollection
	Total    uint64
	MaxScore float64
}

func ReciprocalRankFusion

func ReciprocalRankFusion(hits search.DocumentMatchCollection, weights []float64, rankConstant int, windowSize int, numKNNQueries int, explain bool) FusionResult

ReciprocalRankFusion performs a reciprocal rank fusion on the search results.

func RelativeScoreFusion

func RelativeScoreFusion(hits search.DocumentMatchCollection, weights []float64, windowSize int, numKNNQueries int, explain bool) FusionResult

RelativeScoreFusion normalizes scores based on min/max values for FTS and each KNN query, then applies weights.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL