For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom API

Supported labeling types: Span labeling, row labeling, bounding box labeling, and document labeling.

We also support a Custom API option for using your own model in ML-assisted labeling by providing an API URL. Your API must follow the required request structure to integrate with the Datasaur platform. Here’s how to set it up:

Set up custom API for ML-assisted labeling

  1. Build an API for your model that follows the required request and response format compatible with Datasaur. For guidance, refer to the API creation example.

    1. You can find example request and response bodies near the API URL input field or in the Examples section below.

  2. Once your API is ready, enter the API URL in the designated field in the extension.

  3. For span labeling project

    1. Sentences per request (0 = all): Define how many sentences are sent in a single API request.

  4. For row labeling project

    1. Target text: Select the input text used as reference.

    2. Target question: Select the output column to predict.

    3. Faster prediction speed: Enables faster predictions by processing requests on the backend.

  5. Confidence score: Adjust the value according to your needs.

  6. Click Predict labels.

Examples

Custom API for span labeling

Image of ML Assisted with Custom API for Span Based
ML-assisted labeling with Custom API for span labeling
Request Body
Response Body

Custom API for row labeling

Image of ML Assisted with Custom API for Row Based
ML-assisted labeling with Custom API for row labeling
Request Body
Response Body

Custom API for bounding box labeling

Image of ML Assisted with Custom API for Bounding Box Labeling
ML-assisted labeling with Custom API for bounding box labeling
Request Body
Response Body

Custom API for document labeling

ML-assisted labeling with Custom API for document labeling
Request Body
Response Body

Last updated