Interface VectorSearchOperation.LimitContributor

Enclosing class:
VectorSearchOperation

public static interface VectorSearchOperation.LimitContributor
Fluent API to configure a limit on the VectorSearchOperation builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    limit(int limit)
    Number (of type int only) of documents to return in the results.
    limit(Limit limit)
    Number (of type int only) of documents to return in the results.
  • Method Details

    • limit

      @Contract("_ -> this") default VectorSearchOperation limit(int limit)
      Number (of type int only) of documents to return in the results. This value can't exceed the value of numCandidates if you specify numCandidates.
      Parameters:
      limit -
      Returns:
    • limit

      @Contract("_ -> this") VectorSearchOperation limit(Limit limit)
      Number (of type int only) of documents to return in the results. This value can't exceed the value of numCandidates if you specify numCandidates.
      Parameters:
      limit -
      Returns: