Record Class RagDiagnostics.RetrievalDeclaration
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.binding.RagDiagnostics.RetrievalDeclaration
- Record Components:
location-typeormethod:<name>strategy- declared strategysources- declared source names; empty means every sourcererank- whether rerank is requestedrerankerModel- declared reranker modelqueryExpansion- declared expansion modequeryExpansionModel- declared expansion model
- Enclosing class:
RagDiagnostics
public static record RagDiagnostics.RetrievalDeclaration(String location, com.tnsai.annotations.Search.Strategy strategy, List<String> sources, boolean rerank, String rerankerModel, com.tnsai.annotations.Search.QueryExpansion queryExpansion, String queryExpansionModel)
extends Record
One
@Search declaration on the Role.-
Constructor Summary
ConstructorsConstructorDescriptionRetrievalDeclaration(String location, com.tnsai.annotations.Search.Strategy strategy, List<String> sources, boolean rerank, String rerankerModel, com.tnsai.annotations.Search.QueryExpansion queryExpansion, String queryExpansionModel) Creates an instance of aRetrievalDeclarationrecord 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.location()Returns the value of thelocationrecord component.com.tnsai.annotations.Search.QueryExpansionReturns the value of thequeryExpansionrecord component.Returns the value of thequeryExpansionModelrecord component.booleanrerank()Returns the value of thererankrecord component.Returns the value of thererankerModelrecord component.sources()Returns the value of thesourcesrecord component.com.tnsai.annotations.Search.Strategystrategy()Returns the value of thestrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RetrievalDeclaration
public RetrievalDeclaration(String location, com.tnsai.annotations.Search.Strategy strategy, List<String> sources, boolean rerank, String rerankerModel, com.tnsai.annotations.Search.QueryExpansion queryExpansion, String queryExpansionModel) Creates an instance of aRetrievalDeclarationrecord class.- Parameters:
location- the value for thelocationrecord componentstrategy- the value for thestrategyrecord componentsources- the value for thesourcesrecord componentrerank- the value for thererankrecord componentrerankerModel- the value for thererankerModelrecord componentqueryExpansion- the value for thequeryExpansionrecord componentqueryExpansionModel- the value for thequeryExpansionModelrecord 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 '=='. -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
strategy
public com.tnsai.annotations.Search.Strategy strategy()Returns the value of thestrategyrecord component.- Returns:
- the value of the
strategyrecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-
rerank
public boolean rerank()Returns the value of thererankrecord component.- Returns:
- the value of the
rerankrecord component
-
rerankerModel
Returns the value of thererankerModelrecord component.- Returns:
- the value of the
rerankerModelrecord component
-
queryExpansion
public com.tnsai.annotations.Search.QueryExpansion queryExpansion()Returns the value of thequeryExpansionrecord component.- Returns:
- the value of the
queryExpansionrecord component
-
queryExpansionModel
Returns the value of thequeryExpansionModelrecord component.- Returns:
- the value of the
queryExpansionModelrecord component
-