Skip to main content

Crate seshat_embedding

Crate seshat_embedding 

Source
Expand description

§seshat-embedding

Embedding provider abstraction with a built-in local provider for Seshat.

When the [embedding] section is present in seshat.toml and the crate is compiled with the builtin-embeddings feature (enabled by default), embeddings are generated locally using fastembed-rs (all-MiniLM-L6-v2 model, 384 dimensions) — no external services needed.

When the section is absent or the feature is disabled, all embedding code is compiled away with zero overhead.

§Configuration

# seshat.toml — uncomment to enable vector search
# [embedding]
# model = ""          # empty → provider default (all-MiniLM-L6-v2)
# dimension = 0       # 0     → provider default (384)
# batch_size = 32

Structs§

EmbeddingConfig
Configuration for the embedding provider, parsed from [embedding] in seshat.toml.

Enums§

EmbeddingError
Errors from embedding operations.

Traits§

EmbeddingProvider
Abstraction over embedding providers.

Functions§

create_provider
Create the built-in embedding provider from configuration.