liboxen 0.53.0

Oxen is a fast data version control system, built with machine learning training data in mind. Designed to handle terabytes of data with ease, using a workflow similar to git. Version both structured and unstructured data of any modality: text, images, video, audio, CSV, Parquet, JSONL, model checkpoints, and more. liboxen is the embeddable core library behind the oxen CLI and server, which power fine tuning and inference pipelines for multimodal LLMs, image models, and video models on Oxen.ai.
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

pub const EMBEDDING_CONFIG_FILENAME: &str = "embeddings.toml";

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
pub enum EmbeddingStatus {
    NotIndexed,
    Started,
    InProgress,
    Complete,
    Failed,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct EmbeddingColumn {
    pub name: String,
    pub vector_length: usize,
    pub status: EmbeddingStatus,
}

#[derive(Serialize, Deserialize, Debug, Clone, Default)]
pub struct EmbeddingConfig {
    // Map of column name to embedding vector length
    pub columns: HashMap<String, EmbeddingColumn>,
}