Package com.google.genkit.ai
Class IndexerRequest
java.lang.Object
com.google.genkit.ai.IndexerRequest
Request to index documents into a vector store.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.IndexerRequest(List<Document> documents) Creates a request with documents.IndexerRequest(List<Document> documents, Object options) Creates a request with documents and options. -
Method Summary
Modifier and TypeMethodDescriptionGets the documents to index.Gets the indexing options.voidsetDocuments(List<Document> documents) Sets the documents to index.voidsetOptions(Object options) Sets the indexing options.
-
Constructor Details
-
IndexerRequest
public IndexerRequest()Default constructor. -
IndexerRequest
Creates a request with documents.- Parameters:
documents- the documents to index
-
IndexerRequest
Creates a request with documents and options.- Parameters:
documents- the documents to indexoptions- the indexing options
-
-
Method Details
-
getDocuments
Gets the documents to index.- Returns:
- the documents
-
setDocuments
Sets the documents to index.- Parameters:
documents- the documents
-
getOptions
Gets the indexing options.- Returns:
- the options
-
setOptions
Sets the indexing options.- Parameters:
options- the options
-