Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.inference.results
package org.elasticsearch.xpack.core.inference.results
-
ClassDescriptionWrites a chat completion result in the following json format: { "completion": [ { "result": "some result 1" }, { "result": "some result 2" } ] }Writes a dense embedding result in the follow json format.Writes a dense embedding result in the follow json formatWrites a dense embedding result in the follow json formatDenseEmbeddingResults<E extends EmbeddingResults.Embedding<E>>EmbeddingResults<E extends EmbeddingResults.Embedding<E>>The results of a call to the inference service that contains embeddings (sparse or dense).A resulting embedding together with the offset into the input text.EmbeddingResults.Embedding<E extends EmbeddingResults.Embedding<E>>A resulting embedding for one of the input texts to the inference service.A record representing a document that has been ranked by the cohere rerank APIChat Completion results that only contain a Flow.Publisher.Chat Completion results that only contain a Flow.Publisher.Similar to
ElasticsearchWrapperException, this will wrap an Exception to generate an xContent usingElasticsearchException.generateFailureXContent(XContentBuilder, Params, Exception, boolean).