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.3.tar.gz
(19.2 kB
view details)
Built Distribution
fastrepl-0.0.3-py3-none-any.whl
(28.3 kB
view details)
File details
Details for the file fastrepl-0.0.3.tar.gz
.
File metadata
- Download URL: fastrepl-0.0.3.tar.gz
- Upload date:
- Size: 19.2 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 | 64f4fc229ad6b4b4367056dfaf04b50016db437f6cbd0e956ccd1781617c4252 |
|
MD5 | 96c81be0248bb5d0811e74188d5d704f |
|
BLAKE2b-256 | 3e564c7103072b5956a03b1d4957a945565c22a7304916c78a6f01020efe29d1 |
File details
Details for the file fastrepl-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: fastrepl-0.0.3-py3-none-any.whl
- Upload date:
- Size: 28.3 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 | 984280591a82f30af27e69400020b8ca7cea565fffad95f960826da1bb4364d4 |
|
MD5 | 102e56bc4c510af008689e73d9f986ea |
|
BLAKE2b-256 | 6751d12fb454a840baf2d8028afc940ec3e62b9912cf646af46d04ac8fc24dd7 |