Skip to main content

Module embedder

Module embedder 

Source
Expand description

Embedder trait and types for semantic search.

This module re-exports the canonical Embedder trait from frankensearch’s SyncEmbed trait. All embedding implementations must satisfy Embedder, which provides a synchronous embedding interface suitable for cass’s sync call sites.

The SyncEmbedderAdapter can wrap any Embedder implementor into frankensearch’s async Embedder trait when needed for the frankensearch search pipeline.

§Implementations

  • Hash embedder: FNV-1a feature hashing (always available, ~256 dimensions)
  • ML embedder: FastEmbed with the MiniLM model (requires model download, 384 dimensions)

Structs§

EmbedderInfo
Metadata about an embedder for display and logging.

Enums§

EmbedderError
Unified error type covering all failure modes across the frankensearch search pipeline.

Traits§

Embedder
Synchronous embedding interface for host projects that call embedders from non-async contexts.

Type Aliases§

EmbedderResult
Convenience alias used throughout the frankensearch crate hierarchy.