RetrieverService class final

An API for semantic search over a corpus of user uploaded content.

Constructors

RetrieverService({required Client client})
Creates a RetrieverService using client for transport.
RetrieverService.fromApiKey([String? apiKey])
Creates a RetrieverService that does authentication through an API key.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

batchCreateChunks(BatchCreateChunksRequest request) Future<BatchCreateChunksResponse>
Batch create Chunks.
batchDeleteChunks(BatchDeleteChunksRequest request) Future<void>
Batch delete Chunks.
batchUpdateChunks(BatchUpdateChunksRequest request) Future<BatchUpdateChunksResponse>
Batch update Chunks.
cancelOperation(CancelOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
close() → void
Closes the client and cleans up any resources associated with it.
createChunk(CreateChunkRequest request) Future<Chunk>
Creates a Chunk.
createCorpus(CreateCorpusRequest request) Future<Corpus>
Creates an empty Corpus.
createDocument(CreateDocumentRequest request) Future<Document>
Creates an empty Document.
deleteChunk(DeleteChunkRequest request) Future<void>
Deletes a Chunk.
deleteCorpus(DeleteCorpusRequest request) Future<void>
Deletes a Corpus.
deleteDocument(DeleteDocumentRequest request) Future<void>
Deletes a Document.
deleteOperation(DeleteOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
getChunk(GetChunkRequest request) Future<Chunk>
Gets information about a specific Chunk.
getCorpus(GetCorpusRequest request) Future<Corpus>
Gets information about a specific Corpus.
getDocument(GetDocumentRequest request) Future<Document>
Gets information about a specific Document.
getOperation<T extends ProtoMessage, S extends ProtoMessage>(Operation<T, S> request) Future<Operation<T, S>>
Provides the Operations service functionality in this service.
listChunks(ListChunksRequest request) Future<ListChunksResponse>
Lists all Chunks in a Document.
listCorpora(ListCorporaRequest request) Future<ListCorporaResponse>
Lists all Corpora owned by the user.
listDocuments(ListDocumentsRequest request) Future<ListDocumentsResponse>
Lists all Documents in a Corpus.
listOperations(ListOperationsRequest request) Future<ListOperationsResponse>
Provides the Operations service functionality in this service.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryCorpus(QueryCorpusRequest request) Future<QueryCorpusResponse>
Performs semantic search over a Corpus.
queryDocument(QueryDocumentRequest request) Future<QueryDocumentResponse>
Performs semantic search over a Document.
toString() String
A string representation of this object.
inherited
updateChunk(UpdateChunkRequest request) Future<Chunk>
Updates a Chunk.
updateCorpus(UpdateCorpusRequest request) Future<Corpus>
Updates a Corpus.
updateDocument(UpdateDocumentRequest request) Future<Document>
Updates a Document.

Operators

operator ==(Object other) bool
The equality operator.
inherited