fastembed 5.13.2

Library for generating vector embeddings, reranking locally.
Documentation
use crate::{OutputKey, RerankerModel};

/// Data struct about the available models
#[derive(Debug, Clone)]
#[non_exhaustive]
pub struct ModelInfo<T> {
    pub model: T,
    pub dim: usize,
    pub description: String,
    pub model_code: String,
    pub model_file: String,
    pub additional_files: Vec<String>,
    pub output_key: Option<OutputKey>,
}

/// Data struct about the available reranker models
#[derive(Debug, Clone)]
#[non_exhaustive]
pub struct RerankerModelInfo {
    pub model: RerankerModel,
    pub description: String,
    pub model_code: String,
    pub model_file: String,
    pub additional_files: Vec<String>,
}