Module org.elasticsearch.xcore
Class GenericDenseEmbeddingByteResults
java.lang.Object
org.elasticsearch.xpack.core.inference.results.EmbeddingByteResults
org.elasticsearch.xpack.core.inference.results.GenericDenseEmbeddingByteResults
- All Implemented Interfaces:
NamedWriteable,Writeable,ChunkedToXContent,InferenceServiceResults,DenseEmbeddingResults<EmbeddingByteResults.Embedding>,EmbeddingResults<EmbeddingByteResults.Embedding>
Writes a dense embedding result in the following json format
{
"embeddings_bytes": [
{
"embedding": [
23
]
},
{
"embedding": [
-23
]
}
]
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.inference.results.EmbeddingByteResults
EmbeddingByteResults.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
Methods inherited from class org.elasticsearch.xpack.core.inference.results.EmbeddingByteResults
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:
-
EMBEDDINGS_BYTES
- See Also:
-
-
Constructor Details
-
GenericDenseEmbeddingByteResults
-
GenericDenseEmbeddingByteResults
- Throws:
IOException
-
-
Method Details
-
getWriteableName
-