Class VoyageAITaskSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.VoyageAITaskSettings
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<VoyageAITaskSettings>Json deserializer forVoyageAITaskSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal StringType of the input text.static VoyageAITaskSettingsfinal BooleanWhether to return the source documents in the response.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal IntegertopK()The number of most relevant documents to return.toString()final BooleanWhether to truncate the input texts to fit within the context length.
-
Field Details
-
_DESERIALIZER
Json deserializer forVoyageAITaskSettings
-
-
Method Details
-
of
public static VoyageAITaskSettings of(Function<VoyageAITaskSettings.Builder, ObjectBuilder<VoyageAITaskSettings>> fn) -
inputType
Type of the input text. Permitted values:ingest(maps todocumentin the VoyageAI documentation),search(maps toqueryin the VoyageAI documentation). Only for thetext_embeddingtask type.API name:
input_type -
returnDocuments
Whether to return the source documents in the response. Only for thereranktask type.API name:
return_documents -
topK
The number of most relevant documents to return. If not specified, the reranking results of all documents will be returned. Only for thereranktask type.API name:
top_k -
truncation
Whether to truncate the input texts to fit within the context length.API name:
truncation -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupVoyageAITaskSettingsDeserializer
protected static void setupVoyageAITaskSettingsDeserializer(ObjectDeserializer<VoyageAITaskSettings.Builder> op)
-