Modality

org.llm4s.llmconnect.model.Modality
@Stable
sealed trait Modality

Represents the type of content that can be embedded or processed.

Used by the embedding and extraction subsystems to select the appropriate encoder or extractor for a given piece of content. Each modality maps to a distinct processing pipeline (e.g. text embedding via an API provider, image embedding via a local CLIP model).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Audio
object Image
object Text
object Video
In this article