options for the initialization of a client.
Deletes a document from the RAG database.
the product the RAG database belongs to.
the document's ID.
Enqueues a product inference job without waiting for completion.
Enqueue a request and poll the server until the result is sent or until the maximum number of tries is reached.
the product to retrieve.
file or URL to parse.
parameters relating to prediction options.
OptionalpollingOptions: PollingOptionsConstructor | PollingOptions
options for the polling loop, see PollingOptions.
a Promise containing parsing results.
Get the processing status of a previously enqueued request. Can be used for polling.
id of the queue to poll.
a Promise containing a Job, which also contains a Document if the
parsing is complete.
Not recommended for general use, prefer getReadyRagDocumentPoll.
You will need to poll until the document is ready for use.
Get a document's info and annotations from the RAG database.
the product the RAG database belongs to.
the document's ID.
Get a document's info and annotations from the RAG database.
the product the RAG database belongs to.
the document's ID.
OptionalpollingOptions: PollingOptionsConstructor | PollingOptions
options for the polling loop, see PollingOptions.
a Promise containing the RAG document annotation.
Retrieves the result of a previously enqueued request. This method is used when manually polling the server for the result URL.
the product to retrieve.
URL as given in the getJob() response.
a Promise containing the inference.
ProtectedpollProtected
Poll until the document is finished processing or the max number of attempts is reached.
The product the RAG database belongs to.
The initial response containing the document's ID.
Options for the polling loop, see PollingOptions.
A Promise containing the RAG document annotation.
ProtectedpollProtected
Send a document to an endpoint and poll the server until the result is sent or until the maximum number of tries is reached.
Search for resources matching the given criteria.
a Promise containing the search response with the matching resources.
Update a document's annotations in the RAG database and poll until ready.
The product the RAG database belongs to.
The parameters to use for the update.
OptionalpollingOptions: PollingOptionsConstructor | PollingOptions
options for the polling loop, see PollingOptions.
a Promise containing the RAG document annotation.
Not recommended for general use, prefer updateAndGetRagAnnotationPoll.
You will need to poll until the document is ready for use.
Update a document's annotations in the RAG database.
Add a document to the RAG database and return the initial annotation.
The product the RAG database belongs to.
The file to upload.
The parameters to use for the upload.
OptionalpollingOptions: PollingOptionsConstructor | PollingOptions
options for the polling loop, see PollingOptions.
Not recommended for general use, prefer uploadAndGetRagDocumentPoll.
You will need to poll until the document is ready for use.
Add a document to the RAG database.
Mindee Client V2 class that centralizes most basic operations.