pub type MockEmbeddingModel = Model<Local<Embedding>, MockEmbeddings>;Available on crate feature
test-utils only.Expand description
A deterministic embedding model that returns a fixed vector for each input document.
Aliased Type§
pub struct MockEmbeddingModel {
pub wire: Local<Embedding>,
pub transport: MockEmbeddings,
/* private fields */
}Fields§
§wire: Local<Embedding>What to send and how to read the reply.
transport: MockEmbeddingsHow the payload travels.