Supported Python version:
> 3.10How to install ?
You can directly install the toolkit using pip or from our github repo.It is advised to create a new virtual environment to avoid any unnecessary package conflict.
Install from GitHub repo
Install from GitHub repo
Navigate to your local directory, open command palette and clone the repo using -Then install the toolkit using pip -This will install the package in your python environment.
Create a new project
The first step is to create a project, which is nothing but setting up the necessary directories and configuration files for you. To do this, we will use CLI for this guide. Well, you can also use the SDK for these tasks, checkout SDK. In your project directory, run -- prompts/: The directory where all your versioned .yml prompt files will live.
- .plb/: A hidden directory for internal data in toolkit like search indexes, logs etc.
- plb.toml: The main configuration file for your project. You can use it to set project-wide settings, like the AI model for automated tasks.
- .plb.lock: The lockfile that stores the secure hashes of your production-ready prompts, protecting them from unauthorized changes.
Create a Prompt
Now that we have our project, let’s create our first prompt. We’ll use the interactivecreate command, which guides you through setting up all the required metadata.
In your terminal, run -
create command creates a new file named prompts/Customer-support-agent.v1.0.0.yml.
Hurray! You have created your first prompt. But note that its just a template and the actual content and other metadata should be filled by the user.
Template
Here are two templates for your reference — one is blank, and the other is a completed customer support agent prompt template with content and metadata -Empty Template (Created by Default)
Empty Template (Created by Default)
Filled Template
Filled Template
create command builds an empty template. Open the prompts/Customer-support-agent.v1.0.0.yml file in your code editor. Find the template: key and replace the placeholder content with the filled example above or write your own !
Run the prompt
Let’s execute our prompt using therun command. The command will see the required variables and ask you for them.
It will run the prompt against a LLM of your choice (llm needs to be set as a configuration). Checkout LLMs to find a list of supported models.
In your terminal, run -
Next Steps
Discover AI-Powered Features Available After LLM Setup.Configure LLM
Setup your LLM.
AI Features
Get a quick look on AI features.
