Prompt box

The prompt box serves as a textarea designed for sending your prompts to AI Language Models.


The prompt box serves as a textarea designed for sending your prompts to AI Language Models. Labii utilizes the prompt box to facilitate your inquiries and generate data for widgets.

Prompt Template

A prompt template is a predefined structure or format that provides guidance for creating effective prompts or questions. It serves as a blueprint for constructing prompts that can elicit specific types of responses or encourage desired outcomes.

The Labii prompt template offers a reliable method for generating prompts in a consistent manner. It consists of a designated text string, referred to as 'the template', which can be populated with text variables provided by the end user. By utilizing this template, prompts can be generated in a reproducible manner, ensuring consistency while allowing for customization based on user input.

[Input text] + [Prompt Template] = Prompt

For example:
Template: Display 2D chemical structure for {text}.
Input: aspirin

Output prompt: Display 2D chemical structure for aspirin.

Using a prompt template offers several benefits:

  1. Consistency: Prompt templates ensure consistency in the structure and format of prompts used with AI Language Models. By providing a predefined template, it establishes a standardized framework that users can follow consistently.

  2. Efficiency: Templates streamline the process of generating prompts by providing a ready-made structure. Instead of starting from scratch each time, users can simply fill in the relevant details or modify the template as needed. This saves time and effort, allowing users to quickly generate prompts and receive desired outputs.

  3. Clarity: Prompt templates enhance clarity by guiding users on how to structure their prompts effectively. They can include specific instructions, placeholders, or examples to help users craft precise and understandable queries. This reduces ambiguity and increases the chances of receiving accurate and relevant responses.

  4. Improved Results: Well-designed prompt templates can optimize the performance of AI Language Models. By providing prompts that are clear, relevant, and tailored to the task at hand, users can increase the likelihood of obtaining high-quality outputs. Templates can incorporate best practices and domain-specific knowledge, leading to improved results.

  5. User-Friendliness: Prompt templates simplify the interaction with AI models, especially for users who may be unfamiliar with the system or lack technical expertise. By offering pre-defined structures, users can easily navigate the prompt generation process, making the overall experience more user-friendly and accessible.

Change template

For various applications and widgets, specific prompt templates are utilized. However, if you wish to modify the template, you can do so by clicking on the "Change template" option. Upon clicking, a modal will appear, allowing you to select a different template. Simply choose the desired template, and it will be promptly updated. In the case of widgets, the newly selected template will be saved, eliminating the need to change it again for future use.

Clear template

If you prefer not to use any template, simply click on "Clear template". This action will result in your input being identical to your final prompt without any template structure.

Add template

To include a new prompt template, follow these steps:

Click on "Change template" and then select the "Add prompt template" button within the opened modal. You will be prompted to provide the name and body of the template. Enter a suitable name for the template and specify its body accordingly. This will enable you to create and incorporate a new prompt template into the system.

Manage templates

To manage the list of templates, follow these steps: Click on "Change template" and then select the "Manage prompt templates" button within the opened modal. This will allow you to access the template management options. From there, you can make changes to existing templates, delete templates, and perform other relevant actions to manage your templates effectively.

Last updated