eval

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package eval measures fixture retrieval against explicit relevance judgments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Query

type Query struct {
	Query    string   `json:"query"`
	Expected []string `json:"expected"`
}

func Load

func Load(path string) ([]Query, error)

type Result

type Result struct {
	Mode    string  `json:"mode"`
	Queries []Row   `json:"queries"`
	Hit3    float64 `json:"hit_at_3"`
	MRR     float64 `json:"mrr"`
}

func Run

func Run(ctx context.Context, s search.Search, queries []Query, mode string) (Result, error)

type Row

type Row struct {
	Query string   `json:"query"`
	Hit3  float64  `json:"hit_at_3"`
	MRR   float64  `json:"mrr"`
	IDs   []string `json:"ids"`
}

Jump to

Keyboard shortcuts

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