MockEmbeddingModel

class MockEmbeddingModel(val modelId: String = "mock/embedding", val provider: String = "mock", dimensions: Int = 3) : EmbeddingModel(source)

Since

0.3.0-beta01

Constructors

Link copied to clipboard
constructor(modelId: String = "mock/embedding", provider: String = "mock", dimensions: Int = 3)

Properties

Link copied to clipboard
Link copied to clipboard

How many values this model accepts in a single call, if limited. embedMany consults this to auto-split large requests into batches when the caller doesn't pass an explicit maxEmbeddingsPerCall. Null = no limit.

Link copied to clipboard
open override val modelId: String
Link copied to clipboard
open override val provider: String
Link copied to clipboard

Whether the model permits its embedding batches to run concurrently. When true, embedMany fans batches out (bounded by maxParallelCalls) instead of running them serially.

Functions

Link copied to clipboard
open suspend override fun embed(params: EmbeddingModelCallParams): EmbeddingModelResult