Class SearchRequest

java.lang.Object
org.springframework.ai.vectorstore.SearchRequest

public final class SearchRequest extends Object
Similarity search request. Use the builder() to create the instance of a SearchRequest.
Author:
Christian Tzolov, Thomas Vitale, Ilayaperumal Gopinathan
  • Field Details

    • SIMILARITY_THRESHOLD_ACCEPT_ALL

      public static final double SIMILARITY_THRESHOLD_ACCEPT_ALL
      Similarity threshold that accepts all search scores. A threshold value of 0.0 means any similarity is accepted or disable the similarity threshold filtering. A threshold value of 1.0 means an exact match is required.
      See Also:
    • DEFAULT_TOP_K

      public static final int DEFAULT_TOP_K
      Default value for the top 'k' similar results to return.
      See Also:
  • Constructor Details

    • SearchRequest

      public SearchRequest()
  • Method Details