Uses of Class
com.google.genkit.ai.Document
Packages that use Document
-
Uses of Document in com.google.genkit
Methods in com.google.genkit that return types with arguments of type DocumentModifier and TypeMethodDescriptionRetrieves documents using a Document as the query.Retrieves documents using the specified retriever.Genkit.retrieve(String retrieverName, String query, RetrieverRequest.RetrieverOptions options) Retrieves documents using the specified retriever with options.Methods in com.google.genkit with parameters of type DocumentModifier and TypeMethodDescriptionRetrieves documents using a Document as the query.Method parameters in com.google.genkit with type arguments of type Document -
Uses of Document in com.google.genkit.ai
Methods in com.google.genkit.ai that return DocumentModifier and TypeMethodDescriptionstatic DocumentCreates a text Document.static DocumentCreates a Document with text and metadata.RetrieverRequest.getQuery()Document.withMetadata(String key, Object value) Adds metadata to this Document.Methods in com.google.genkit.ai that return types with arguments of type DocumentModifier and TypeMethodDescriptionModelRequest.getContext()GenerateAction.GenerateActionOptions.getDocs()GenerateOptions.getDocs()Gets the documents for context.EmbedRequest.getDocuments()IndexerRequest.getDocuments()Gets the documents to index.RetrieverResponse.getDocuments()Methods in com.google.genkit.ai with parameters of type DocumentMethod parameters in com.google.genkit.ai with type arguments of type DocumentModifier and TypeMethodDescriptionvoidModelRequest.setContext(List<Document> context) voidvoidEmbedRequest.setDocuments(List<Document> documents) voidIndexerRequest.setDocuments(List<Document> documents) Sets the documents to index.voidRetrieverResponse.setDocuments(List<Document> documents) Constructors in com.google.genkit.ai with parameters of type DocumentModifierConstructorDescriptionRetrieverRequest(Document query) Creates a RetrieverRequest with a query.Constructor parameters in com.google.genkit.ai with type arguments of type DocumentModifierConstructorDescriptionEmbedRequest(List<Document> documents) Creates an EmbedRequest with documents.IndexerRequest(List<Document> documents) Creates a request with documents.IndexerRequest(List<Document> documents, Object options) Creates a request with documents and options.RetrieverResponse(List<Document> documents) Creates a RetrieverResponse with documents. -
Uses of Document in com.google.genkit.plugins.localvec
Methods in com.google.genkit.plugins.localvec that return DocumentMethods in com.google.genkit.plugins.localvec with parameters of type DocumentMethod parameters in com.google.genkit.plugins.localvec with type arguments of type DocumentModifier and TypeMethodDescriptionvoidLocalVecDocStore.index(ActionContext ctx, List<Document> documents) Indexes documents with their embeddings.Constructors in com.google.genkit.plugins.localvec with parameters of type Document