pub async fn run_embed_rebuild(
config: &Config,
batch_size_override: Option<usize>,
) -> Result<()>Expand description
Delete all embeddings and regenerate for all chunks.
Clears both the embeddings metadata table and the chunk_vectors
blob table, then re-embeds every chunk in the database.
§Arguments
config— Application configuration.batch_size_override— Override the config’sembedding.batch_size.
§Errors
Returns an error if the embedding provider is disabled.