Documentation ¶
Overview ¶
Package eval lets you evaluate LLM output by scoring it with various scoring methods, and logging the result. It provides a convenient way to run evaluations as part of the standard Go tests using the Run function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Score ¶
type Score float64
Score between 0 and 1.
func LevenshteinDistanceScore ¶
LevenshteinDistanceScore computes a Score between two strings using the levenshtein distance. A score of 1 means the strings are equal, and 0 means they are completely different. Uses https://github.com/agnivade/levenshtein
Click to show internal directories.
Click to hide internal directories.