Skip to main content

llm_kernel/search/
types.rs

1//! Search result types.
2
3/// A single search result from any search backend.
4#[derive(Debug, Clone)]
5pub struct SearchResult {
6    /// Document/chunk identifier.
7    pub id: String,
8    /// Relevance score (0.0–1.0 for normalized, unbounded for raw BM25).
9    pub score: f32,
10    /// Text content of the matched document/chunk.
11    pub text: String,
12}