Software 3.0
Project description
Davinci
Software 3.0
Install
git clone https://github.com/ExpressAI/Promptware.git
cd Promptware
# Install the required dependencies and dev dependencies
pip install -e .
Quick Example
export OS_API_KEY=YOUR_OPENAI_KEY
from promptware import load
promptware = load("sentiment_classifier")
label = promptware.execute({"text": "I love this movie"})
or load a software locally
from promptware import load
promptware = load("./softwares/sentiment_classifier")
label = promptware.execute({"text": "I love this movie"})
it also supports subconfig:
from promptware import load
promptware = load("./softwares/machine_translation", "enzh")
promptware = load("./softwares/machine_translation", "zhen")
See more in this example
Add More Softwares
Here is one example, where you need to create two files:
sentiment_classifier
: declare different configs of the softwaresentiment_classifier_test
: a test file for your defined software
you can run the test file with following script:
python -m unittest softwares.sentiment_classifier.sentiment_classifier_test
Schema of Promptware
@dataclass
class Promptware:
# Name
name: str
# Describe what the promptware is designed for
description:str
# Instruction text of promptware
instruction:str
# Demonstration of promptware
demonstration:Optional[list[str]]
# Prompt template defines how a user's input will be formatted
prompt_template: Callable[[Any], str]
# The most appropriate tasks that the promptware could be applied to
task:TaskType
Feature
- broad coverage
- support promptware from openai
- support promptwares from twitter discussion
- suppport promptware from latest research works
- an integrated platform for different infrastructure supports
- basic kernels
- pipeline frameworks
- prompt engineering
- formating
- generation
- reranking
- human editing
- different platform (openai, huggingface, cohere)
- support fast deployment
- Evaluation Support
- evaluation benchmark
- evaluation module
- crowdsourable
Benchmark Datasets
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
promptware-0.0.1.dev0.tar.gz
(51.2 kB
view hashes)
Built Distribution
Close
Hashes for promptware-0.0.1.dev0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e9caa8a626f3b671e09bedb7e3d59be7078e30da50c3f1ce92503d70013b7b5 |
|
MD5 | 145843844097e8bce0c2edd498ec7aa4 |
|
BLAKE2b-256 | 697e884d1b01ccaf5381a46a246c89d7e8b75a6aa327e5d1969ab6f167ceff4b |