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