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" } ] }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.Deprecated.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.Writes a text embedding result in the follow json format { "text_embedding_bytes": [ { "embedding": [ 23 ] }, { "embedding": [ -23 ] } ] }Writes a text embedding result in the follow json format { "text_embedding_bytes": [ { "embedding": [ 23 ] }, { "embedding": [ -23 ] } ] }Writes a text embedding result in the follow json format { "text_embedding": [ { "embedding": [ 0.1 ] }, { "embedding": [ 0.2 ] } ] }TextEmbeddingResults<E extends EmbeddingResults.Embedding<E>>Similar to
ElasticsearchWrapperException, this will wrap an Exception to generate an xContent usingElasticsearchException.generateFailureXContent(XContentBuilder, Params, Exception, boolean).
TextEmbeddingFloatResultsinstead