Record Class RagDiagnostics.RetrievalDeclaration

java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.binding.RagDiagnostics.RetrievalDeclaration
Record Components:
location - type or method:<name>
strategy - declared strategy
sources - declared source names; empty means every source
rerank - whether rerank is requested
rerankerModel - declared reranker model
queryExpansion - declared expansion mode
queryExpansionModel - 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 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 a RetrievalDeclaration record class.
      Parameters:
      location - the value for the location record component
      strategy - the value for the strategy record component
      sources - the value for the sources record component
      rerank - the value for the rerank record component
      rerankerModel - the value for the rerankerModel record component
      queryExpansion - the value for the queryExpansion record component
      queryExpansionModel - the value for the queryExpansionModel record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • location

      public String location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • strategy

      public com.tnsai.annotations.Search.Strategy strategy()
      Returns the value of the strategy record component.
      Returns:
      the value of the strategy record component
    • sources

      public List<String> sources()
      Returns the value of the sources record component.
      Returns:
      the value of the sources record component
    • rerank

      public boolean rerank()
      Returns the value of the rerank record component.
      Returns:
      the value of the rerank record component
    • rerankerModel

      public String rerankerModel()
      Returns the value of the rerankerModel record component.
      Returns:
      the value of the rerankerModel record component
    • queryExpansion

      public com.tnsai.annotations.Search.QueryExpansion queryExpansion()
      Returns the value of the queryExpansion record component.
      Returns:
      the value of the queryExpansion record component
    • queryExpansionModel

      public String queryExpansionModel()
      Returns the value of the queryExpansionModel record component.
      Returns:
      the value of the queryExpansionModel record component