Module org.elasticsearch.xcore
Class DenseEmbeddingFloatResults
java.lang.Object
org.elasticsearch.xpack.core.inference.results.EmbeddingFloatResults
org.elasticsearch.xpack.core.inference.results.DenseEmbeddingFloatResults
- All Implemented Interfaces:
NamedWriteable,Writeable,ChunkedToXContent,InferenceServiceResults,DenseEmbeddingResults<EmbeddingFloatResults.Embedding>,EmbeddingResults<EmbeddingFloatResults.Embedding>
Writes a dense embedding result in the following json format
{
"text_embedding": [
{
"embedding": [
0.1
]
},
{
"embedding": [
0.2
]
}
]
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.inference.results.EmbeddingFloatResults
EmbeddingFloatResults.EmbeddingNested classes/interfaces inherited from interface org.elasticsearch.xpack.core.inference.results.EmbeddingResults
EmbeddingResults.ChunkNested classes/interfaces inherited from interface org.elasticsearch.inference.InferenceServiceResults
InferenceServiceResults.ResultNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTYFields inherited from interface org.elasticsearch.xpack.core.inference.results.EmbeddingResults
EMBEDDING -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic DenseEmbeddingFloatResultsof(List<? extends InferenceResults> results) Methods inherited from class org.elasticsearch.xpack.core.inference.results.EmbeddingFloatResults
asMap, embeddings, equals, getFirstEmbeddingSize, hashCode, toXContentChunked, transformToCoordinationFormat, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.inference.InferenceServiceResults
isStreaming, publisher
-
Field Details
-
NAME
- See Also:
-
TEXT_EMBEDDING
- See Also:
-
-
Constructor Details
-
DenseEmbeddingFloatResults
-
DenseEmbeddingFloatResults
- Throws:
IOException
-
-
Method Details
-
of
-
getWriteableName
-