LLM Labs (beta)
Enable your integration with models from Datasaur LLM Labs
You can integrate models from LLM Labs with ML-assisted labeling. If you have already tested and deployed an experiment in a sandbox, you can use the deployed model in your labeling workflow.
Create a model in Sandbox
To use ML-assisted labeling with LLM Labs, create and deploy a model from Sandbox.
For example, if your label/question set includes Category and Suggestion, the expected output should look like this:
{
"Category": ["Minute of Meeting"],
"Suggestion": ["Move the 'Issues' section to the top of the notes instead of keeping it at the bottom."]
}Instruction example for JSON output
To ensure the LLM returns the correct JSON format, structure your prompt clearly. For example:
Given the document text, please extract the following information and present it in JSON format as shown below:
- *Category*: The type of text or notes provided. Please choose one from "Minutes of Meeting," "Draft," or "Budget Plan."
- *Suggestion*: A recommendation based on best practices for creating better notes for "Minutes of Meeting," "Draft," or "Budget Plan."
Instructions Summary:
1. Extract and present the information in the specified JSON format.
2. Ensure that all extracted data is accurate and corresponds directly to the content of each document.
Return the value of extracted fields in JSON structure in plain text, following this JSON FORMAT
{
"Category": [list of Category answer],
"Suggestion": [list of Suggestion answer]
}
VERY IMPORTANT
RETURN THE ANSWER WITHOUT ```json
EXTRACT ANSWER THAT PRECISELY WRITTEN IN DOCUMENT CONTEXTAdvance hyperparameters in Sandbox
You can configure advanced hyperparameters in the Sandbox. In a model, go to the three-dot menu and click Change model settings. From there, you can define advanced hyperparameters using OpenAI supported schema for Structured Outputs.

Example of advanced hyperparameters configuration:
You can focus on adjusting the properties and required objects to match your label or question set.
Use your model in ML-assisted labeling
Follow these steps to access your deployed model in ML-assisted labeling:
Create a custom project for row labeling, span labeling, or document labeling.
Click the gear icon from the extension panel on the right to open the Manage extensions dialog.
Enable the ML-assisted labeling extension.
Once enabled, select LLM Labs as the service provider and you will see the following fields:

ML-assisted labeling with LLM Labs for span labeling 
ML-assisted labeling with LLM Labs for row labeling 
ML-assisted labeling with LLM Labs for document labeling Target text: Select the input text used as reference.
Target question: Select the output column to predict.
Model: Select your deployed model from LLM Labs.
Target pages: Define specific pages you want to extract from a document.
Start prediction
Click Predict labels to start predicting labels with your deployed model from LLM Labs.



Last updated