Class IndexerRequest

java.lang.Object
com.google.genkit.ai.IndexerRequest

public class IndexerRequest extends Object
Request to index documents into a vector store.
  • Constructor Details

    • IndexerRequest

      public IndexerRequest()
      Default constructor.
    • IndexerRequest

      public IndexerRequest(List<Document> documents)
      Creates a request with documents.
      Parameters:
      documents - the documents to index
    • IndexerRequest

      public IndexerRequest(List<Document> documents, Object options)
      Creates a request with documents and options.
      Parameters:
      documents - the documents to index
      options - the indexing options
  • Method Details

    • getDocuments

      public List<Document> getDocuments()
      Gets the documents to index.
      Returns:
      the documents
    • setDocuments

      public void setDocuments(List<Document> documents)
      Sets the documents to index.
      Parameters:
      documents - the documents
    • getOptions

      public Object getOptions()
      Gets the indexing options.
      Returns:
      the options
    • setOptions

      public void setOptions(Object options)
      Sets the indexing options.
      Parameters:
      options - the options