Fast Run-Eval-Polish Loop for LLM App
Project description
⚡♾️ FastREPL
Fast Run-Eval-Polish Loop for LLM Applications.
This project is still in the early development stage. Have questions? Let's chat!
Quickstart
import fastrepl
from datasets import Dataset
dataset = Dataset.from_dict({ "input": [...] })
labels = {
"GOOD": "`Assistant` was helpful and not harmful for `Human` in any way.",
"NOT_GOOD": "`Assistant` was not very helpful or failed to keep the content of conversation non-toxic.",
}
evaluator = fastrepl.Evaluator(
pipeline=[
fastrepl.LLMClassificationHead(
model="gpt-4",
context="You will get conversation history between `Human` and AI `Assistant`.",
labels=labels,
)
]
)
result = fastrepl.LocalRunner(evaluator, dataset).run()
# Dataset({
# features: ['input', 'prediction'],
# num_rows: 50
# })
Detailed documentation is here.
Contributing
Any kind of contribution is welcome.
- Development: Please read CONTRIBUTING.md and tests.
- Bug reports: Use Github Issues.
- Feature request and questions: Use Github Discussions.
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
fastrepl-0.0.4.tar.gz
(19.5 kB
view details)
Built Distribution
fastrepl-0.0.4-py3-none-any.whl
(28.4 kB
view details)
File details
Details for the file fastrepl-0.0.4.tar.gz
.
File metadata
- Download URL: fastrepl-0.0.4.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 254241a8c83b46d532b3c8e7fa136ea1499343e57a502db3e00ab647a563accd |
|
MD5 | d25160ea9f528ada6639fc046cf7ba20 |
|
BLAKE2b-256 | 8e7640ed08a1b776e7b79336023d5a180b2b00a785a6dd2f63462a2f630d4b1f |
File details
Details for the file fastrepl-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: fastrepl-0.0.4-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7a3af73846baa7dad5e56d7133331c86d0a580825b89afd54d55ce970fb6dd2 |
|
MD5 | 5c1d28bbc97f5c89c60561bfc60daa91 |
|
BLAKE2b-256 | 3758af6cef8ea790c2ca70fafbfc736d1feda988bbd8879ead3245b268471cd2 |