Record Class DocsRetrievalClient.RetrieveRequest
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.aiassistant.impl.function.manual.DocsRetrievalClient.RetrieveRequest
- Enclosing class:
DocsRetrievalClient
-
Constructor Summary
ConstructorsConstructorDescriptionRetrieveRequest(float[] vector, @Nullable String version, @Nullable String language, int topK) Creates an instance of aRetrieveRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringlanguage()Returns the value of thelanguagerecord component.inttopK()Returns the value of thetopKrecord component.final StringtoString()Returns a string representation of this record class.float[]vector()Returns the value of thevectorrecord component.@Nullable Stringversion()Returns the value of theversionrecord component.
-
Constructor Details
-
RetrieveRequest
public RetrieveRequest(float[] vector, @Nullable String version, @Nullable String language, int topK) Creates an instance of aRetrieveRequestrecord class.- Parameters:
vector- the value for thevectorrecord componentversion- the value for theversionrecord componentlanguage- the value for thelanguagerecord componenttopK- the value for thetopKrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
vector
public float[] vector()Returns the value of thevectorrecord component.- Returns:
- the value of the
vectorrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
topK
public int topK()Returns the value of thetopKrecord component.- Returns:
- the value of the
topKrecord component
-