MultimodalEmbeddingProvider

org.llm4s.llmconnect.provider.MultimodalEmbeddingProvider

Embeds media: images, audio, video. A capability of its own, apart from org.llm4s.llmconnect.provider.EmbeddingProvider, because most embedding providers are text only; no provider llm4s ships implements it.

Implement it over a multimodal embedding endpoint and pass it to FileEmbedder.encodeFromPath, which calls it for the media files it is given.

Attributes

Source
MultimodalEmbeddingProvider.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Generates one embedding per input of the request.

Generates one embedding per input of the request.

Value parameters

request

the media to embed, their modality and the model

Attributes

Returns

Right(EmbeddingResponse) with vectors on success, Left(error) on failure

Source
MultimodalEmbeddingProvider.scala