llm-kernel 0.9.0

Foundation library for Rust AI-native apps — provider catalog, LLM client, MCP server, search, telemetry, and safety
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Search result types.

/// A single search result from any search backend.
#[derive(Debug, Clone)]
pub struct SearchResult {
    /// Document/chunk identifier.
    pub id: String,
    /// Relevance score (0.0–1.0 for normalized, unbounded for raw BM25).
    pub score: f32,
    /// Text content of the matched document/chunk.
    pub text: String,
}