Skip to main content

Crate synaptic_eval

Crate synaptic_eval 

Source

Structs§

Dataset
A collection of input-reference pairs for evaluation.
DatasetItem
A single item in an evaluation dataset.
EmbeddingDistanceEvaluator
Evaluator that computes cosine similarity between embeddings of prediction and reference.
EvalCase
EvalReport
EvalResult
Result of a single evaluation.
ExactMatchEvaluator
Evaluator that checks for exact string match between prediction and reference.
JsonValidityEvaluator
Evaluator that checks whether the prediction is valid JSON.
LLMJudgeEvaluator
Evaluator that uses an LLM to judge prediction quality.
RegexMatchEvaluator
Evaluator that checks whether the prediction matches a regex pattern.

Traits§

Evaluator
Trait for evaluating predictions against references.

Functions§

evaluate
Evaluate predictions against a dataset using an evaluator.