JinaTask

org.llm4s.llmconnect.provider.JinaTask
See theJinaTask companion object
enum JinaTask(val wireName: String)

The Jina AI embedding task: which LoRA adapter jina-embeddings-v3 applies to the input.

Jina embeds queries and documents differently, so the right task depends on what the caller is embedding. A request says so with its org.llm4s.llmconnect.model.InputPurpose, and the provider maps it onto RetrievalQuery or RetrievalPassage by itself. A task the purpose cannot express (TextMatching, Classification, Separation) is a typed setting of the provider, not part of the model name: pass it to JinaEmbeddingProvider.fromConfig, where it takes precedence over the purpose of every request.

Value parameters

wireName

the value sent as task in the request body

Attributes

Companion
object
Source
JinaEmbeddingProvider.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Classification extends JinaTask

Input for a classifier.

Input for a classifier.

Attributes

Source
JinaEmbeddingProvider.scala
case RetrievalPassage extends JinaTask

Embeds a document passage for indexing.

Embeds a document passage for indexing.

Attributes

Source
JinaEmbeddingProvider.scala
case RetrievalQuery extends JinaTask

Embeds a search query; pair with RetrievalPassage for the indexed documents.

Embeds a search query; pair with RetrievalPassage for the indexed documents.

Attributes

Source
JinaEmbeddingProvider.scala
case Separation extends JinaTask

Input for clustering or reranking.

Input for clustering or reranking.

Attributes

Source
JinaEmbeddingProvider.scala
case TextMatching extends JinaTask

Symmetric similarity between texts of the same kind.

Symmetric similarity between texts of the same kind.

Attributes

Source
JinaEmbeddingProvider.scala