CohereInputType

org.llm4s.llmconnect.provider.CohereInputType
See theCohereInputType companion object
enum CohereInputType(val wireName: String)

The Cohere input_type: which side of retrieval a text is on.

Cohere's v3 and v4 models embed a query and a document differently, so a mismatch between how texts were indexed and how a query is embedded quietly degrades retrieval. It is a typed setting of the provider, not guessed from the number of inputs or encoded in the model name: pass it to CohereEmbeddingProvider.fromConfig.

Value parameters

wireName

the value sent as input_type in the request body

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

Input for a text classifier.

Input for a text classifier.

Attributes

Input for clustering.

Input for clustering.

Attributes

A document to index; pair with SearchQuery for the queries run against it.

A document to index; pair with SearchQuery for the queries run against it.

Attributes

A search query against documents embedded as SearchDocument.

A search query against documents embedded as SearchDocument.

Attributes