benchmarkscore

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecallAtK

func RecallAtK(candidateIDs, relevantIDs []string, k int) float64

RecallAtK reports the fraction of relevant IDs found in the top-k candidates.

func RoundFloat

func RoundFloat(value float64) float64

func RubricCoverage

func RubricCoverage(contexts, rubric []string) (float64, []string)

RubricCoverage scores how many rubric items have all significant tokens in the selected recall context strings.

func RubricTokens

func RubricTokens(text string) []string

RubricTokens extracts significant lower-cased tokens for benchmark rubric matching.

Types

This section is empty.

Jump to

Keyboard shortcuts

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