reranker

package
v0.0.0-...-13e68c6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRerankFailed = errors.New("rerank failed")

Functions

func RerankDocuments

func RerankDocuments(ctx context.Context, m llm.Model, documents []string, query string) ([]int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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