Skip to main content

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!

CI Status PyPI Version

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.

Project details


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)

Uploaded Source

Built Distribution

fastrepl-0.0.3-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

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

Hashes for fastrepl-0.0.3.tar.gz
Algorithm Hash digest
SHA256 64f4fc229ad6b4b4367056dfaf04b50016db437f6cbd0e956ccd1781617c4252
MD5 96c81be0248bb5d0811e74188d5d704f
BLAKE2b-256 3e564c7103072b5956a03b1d4957a945565c22a7304916c78a6f01020efe29d1

See more details on using hashes here.

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

Hashes for fastrepl-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 984280591a82f30af27e69400020b8ca7cea565fffad95f960826da1bb4364d4
MD5 102e56bc4c510af008689e73d9f986ea
BLAKE2b-256 6751d12fb454a840baf2d8028afc940ec3e62b9912cf646af46d04ac8fc24dd7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page