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