EmbeddingClient

org.llm4s.llmconnect.EmbeddingClient
See theEmbeddingClient companion object
class EmbeddingClient(provider: EmbeddingProvider, tracer: Option[Tracing], operation: String)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Text embeddings via the configured HTTP provider.

Text embeddings via the configured HTTP provider.

Attributes

def encodePath(path: Path, textModel: EmbeddingModelConfig, chunking: TextChunkingConfig, experimentalStubsEnabled: Boolean, localModels: LocalEmbeddingModels): Result[Seq[EmbeddingVector]]

Unified API to encode any supported file into vectors, given text model + chunking.

Unified API to encode any supported file into vectors, given text model + chunking.

Attributes

def withOperation(op: String): EmbeddingClient

Create a new client with a specific operation label for tracing.

Create a new client with a specific operation label for tracing.

Attributes

Create a new client with tracing enabled.

Create a new client with tracing enabled.

Attributes