Package com.tnsai.intelligence.rag
Record Class QueryExpander.Request
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.QueryExpander.Request
- Record Components:
query- original retrieval querymode- expansion technique to applymodel- exact provider model identifiermaxExpansions- maximum number of generated variations acceptedcancellationToken- cooperative cancellation signal
- Enclosing interface:
QueryExpander
public static record QueryExpander.Request(String query, com.tnsai.annotations.Search.QueryExpansion mode, String model, int maxExpansions, com.tnsai.cancellation.CancellationToken cancellationToken)
extends Record
Immutable input passed to a
QueryExpander provider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.tnsai.cancellation.CancellationTokenReturns the value of thecancellationTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxExpansionsrecord component.com.tnsai.annotations.Search.QueryExpansionmode()Returns the value of themoderecord component.model()Returns the value of themodelrecord component.query()Returns the value of thequeryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 '=='. -
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
mode
public com.tnsai.annotations.Search.QueryExpansion mode()Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
maxExpansions
public int maxExpansions()Returns the value of themaxExpansionsrecord component.- Returns:
- the value of the
maxExpansionsrecord component
-
cancellationToken
public com.tnsai.cancellation.CancellationToken cancellationToken()Returns the value of thecancellationTokenrecord component.- Returns:
- the value of the
cancellationTokenrecord component
-