Package app.ductape.sdk.vector.types
Record Class VectorInterfaceTypes.QueryVectorsOptions
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.types.VectorInterfaceTypes.QueryVectorsOptions
- Enclosing class:
- VectorInterfaceTypes
public static record VectorInterfaceTypes.QueryVectorsOptions(List<Double> vector, int topK, String namespace, Object filter, Boolean includeValues, Boolean includeMetadata, Double minScore, VectorInterfaceTypes.SparseVector sparseVector, Double alpha)
extends Record
TS
IQueryVectorsOptions (dense + hybrid fields).-
Constructor Summary
ConstructorsConstructorDescriptionQueryVectorsOptions(List<Double> vector, int topK, String namespace, Object filter, Boolean includeValues, Boolean includeMetadata, Double minScore, VectorInterfaceTypes.SparseVector sparseVector, Double alpha) Creates an instance of aQueryVectorsOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalpha()Returns the value of thealpharecord component.final booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theincludeMetadatarecord component.Returns the value of theincludeValuesrecord component.minScore()Returns the value of theminScorerecord component.Returns the value of thenamespacerecord component.Returns the value of thesparseVectorrecord component.inttopK()Returns the value of thetopKrecord component.final StringtoString()Returns a string representation of this record class.vector()Returns the value of thevectorrecord component.
-
Constructor Details
-
QueryVectorsOptions
public QueryVectorsOptions(List<Double> vector, int topK, String namespace, Object filter, Boolean includeValues, Boolean includeMetadata, Double minScore, VectorInterfaceTypes.SparseVector sparseVector, Double alpha) Creates an instance of aQueryVectorsOptionsrecord class.- Parameters:
vector- the value for thevectorrecord componenttopK- the value for thetopKrecord componentnamespace- the value for thenamespacerecord componentfilter- the value for thefilterrecord componentincludeValues- the value for theincludeValuesrecord componentincludeMetadata- the value for theincludeMetadatarecord componentminScore- the value for theminScorerecord componentsparseVector- the value for thesparseVectorrecord componentalpha- the value for thealpharecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
vector
Returns the value of thevectorrecord component.- Returns:
- the value of the
vectorrecord component
-
topK
public int topK()Returns the value of thetopKrecord component.- Returns:
- the value of the
topKrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
includeValues
Returns the value of theincludeValuesrecord component.- Returns:
- the value of the
includeValuesrecord component
-
includeMetadata
Returns the value of theincludeMetadatarecord component.- Returns:
- the value of the
includeMetadatarecord component
-
minScore
Returns the value of theminScorerecord component.- Returns:
- the value of the
minScorerecord component
-
sparseVector
Returns the value of thesparseVectorrecord component.- Returns:
- the value of the
sparseVectorrecord component
-
alpha
Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-