org.llm4s.llmconnect.provider.CohereInputType
See theCohereInputType companion object
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_typein the request body
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article