code-search-please 0.1.4

Hybrid code search for agents — core library (Rust rewrite of MinishLab/semble).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Ranking pipeline. Port of `src/ranking/*` (← semble `ranking/`).
//!
//! Score maps are keyed by chunk **index** into a canonical `&[Chunk]` slice and
//! use [`indexmap::IndexMap`] to preserve insertion order — the Rust counterpart
//! of the TypeScript `Map<Chunk, number>` keyed by object identity (whose
//! iteration order, and thus tie-breaking, the upstream code relies on).

use indexmap::IndexMap;

pub mod boosting;
pub mod penalties;
pub mod weighting;

/// Candidate scores keyed by chunk index, insertion-ordered.
pub type Scores = IndexMap<usize, f64>;