Module org.elasticsearch.xcore
Class TextEmbeddingQueryVectorBuilder
java.lang.Object
org.elasticsearch.xpack.core.ml.vectors.TextEmbeddingQueryVectorBuilder
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,QueryVectorBuilder,ToXContent,ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final Stringstatic final ConstructingObjectParser<TextEmbeddingQueryVectorBuilder, Void> static final NodeFeatureFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildVector(Client client, ActionListener<float[]> listener) booleanfromXContent(XContentParser parser) inthashCode()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
RETRIEVER_RESULT_DIVERSIFICATION_USES_QUERY_VECTOR_BUILDER
-
NAME
- See Also:
-
MODEL_TEXT
-
PARSER
-
-
Constructor Details
-
TextEmbeddingQueryVectorBuilder
-
TextEmbeddingQueryVectorBuilder
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static TextEmbeddingQueryVectorBuilder fromXContent(XContentParser parser) throws IOException - Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
buildVector
- Specified by:
buildVectorin interfaceQueryVectorBuilder
-
getModelText
-
getModelId
-
equals
-
hashCode
public int hashCode()
-