Class RetrieverOptions

java.lang.Object
com.google.genkit.plugins.localvec.RetrieverOptions

public class RetrieverOptions extends Object
Options for the local vector store retriever.
  • Constructor Details

    • RetrieverOptions

      public RetrieverOptions()
      Default constructor.
    • RetrieverOptions

      public RetrieverOptions(int k)
      Creates options with specified k value.
      Parameters:
      k - the number of documents to retrieve
  • Method Details

    • getK

      public int getK()
      Gets the number of documents to retrieve.
      Returns:
      the k value
    • setK

      public void setK(int k)
      Sets the number of documents to retrieve.
      Parameters:
      k - the k value