No project description provided
Project description
Prompt Learner
What is Prompt Learner?
Prompt Learner is designed to make prompts modular.
This enables easy tuning, quick experimentation, and frictionless maintenance.
A prompt is composed of distinct modules where each module can be optimized & modified both on its own, and as a part of the complete system. Some modules are -
- The task type
- The task description
- A few examples
- Custom Prompt Technique specific Instructions
- Instructions for output format
See the documentation on "Why Prompt Learner?" to learn more.
Getting started
You can pip install Prompt Learner:
pip install prompt-learner
[!TIP] See the getting started tutorial for a detailed example of Prompt Learner in action.
How it works
Prompt-learner runs on the above architecture.
Starting from the left, the user has to decide on 4 aspects -
- The Task
- A Template format for your prompt
- A set of Examples
- An LLM model to use
A task and examples feed into the template of choice (Claude, Open AI..). The task and examples also interact with selectors which can pick the best n examples for the task using statistical and machine learning techniques. These selected examples slot into the template, along with any custom instructions from any prompting technique( such as adding 'think step by step' for chain of thought prompting) comprise the final prompt. The prompt invokes the LLM through the adapter with any given inference sample to produce the final output.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prompt_learner-0.3.3.tar.gz.
File metadata
- Download URL: prompt_learner-0.3.3.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b5b660f6aaaf01af926fd7c71c52c6795adc6f7fb71c3cda064b2fcd83699f2
|
|
| MD5 |
5848455af0bf3332c05d3c316b26acf3
|
|
| BLAKE2b-256 |
28b2ceed9be7aa23f036599daf65b65361c0c4b0bbbee0e50b821b59a06778ea
|
File details
Details for the file prompt_learner-0.3.3-py3-none-any.whl.
File metadata
- Download URL: prompt_learner-0.3.3-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.4 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ac992f4d5e6750873da0926044691ab633039bb9e29071095250118b3e41229
|
|
| MD5 |
23041cca8e00ec24e20fcfd5d71d7573
|
|
| BLAKE2b-256 |
78ff6323fd9514dcef6fb67d970501ee3113ea87a4082b78cd9a346f17ead556
|