Skip to main content

evaluate_selected_similar_code

Function evaluate_selected_similar_code 

Source
pub fn evaluate_selected_similar_code(
    vectors: &[FunctionVector],
    selection: &SimilarCodeCorpusSelection,
    threshold: f64,
    limits: SimilarCodeLimits,
    extraction_semantics_version: u32,
) -> Result<SimilarCodeEvaluation, SimilarCodeError>
Expand description

Evaluate only the vectors produced for a prior source-corpus selection.

vectors must follow selection.selected_indices order. This preserves both the pre-inference omissions and scope membership selected by the caller.