Skip to main content

check_embedding_metadata

Function check_embedding_metadata 

Source
pub fn check_embedding_metadata(
    conn: &Connection,
    config: &EmbeddingConfig,
) -> Result<(), MemoryError>
Expand description

Check and update the embedding_metadata singleton row.

If the row exists and model/dimensions don’t match, warn and update. If no row exists, insert one. If it matches, no-op.