Skip to main content

Module embedding

Module embedding 

Source
Expand description

Host-injected embedding provider contract and bounded batch execution.

This module does not own workspace traversal, vector storage, or session lifecycle. It validates provider output before a later retrieval runtime can publish vectors into a session-owned index.

Structs§

EmbeddingBatchRequest
One bounded request passed to an super::EmbeddingProvider.
EmbeddingBatchResponse
Provider response for one batch.
EmbeddingExecution
Fully validated output. Vectors preserve caller input order.
EmbeddingExecutor
Validating, batching wrapper around one host-injected provider generation.
EmbeddingExecutorConfig
Hard limits and retry policy for one embedding executor generation.
EmbeddingInput
One caller-identified text input.
EmbeddingProviderDescriptor
Immutable identity and output shape for one embedding generation.
EmbeddingVector
One provider-returned embedding vector.

Enums§

EmbeddingError
Validation and execution failures produced by super::EmbeddingExecutor.
EmbeddingFailureKind
Stable category used for retry and degraded-state decisions.
EmbeddingNormalization
Vector normalization promised by an embedding provider.
EmbeddingProviderError
Typed failure returned by a host embedding adapter.

Traits§

EmbeddingProvider
Host-owned source of embedding vectors.

Type Aliases§

EmbeddingResult