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 Open In Colab

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.6.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

fastrepl-0.0.6-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file fastrepl-0.0.6.tar.gz.

File metadata

  • Download URL: fastrepl-0.0.6.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

File hashes

Hashes for fastrepl-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3233d9798fac0edcbcca109f93006504243053e8bfafa291a098b5844c498bca
MD5 1bce15190a70eb5cc3731d1b49e4f7ed
BLAKE2b-256 59dfd44ab0585f3be91981d69db9ffb9a012db8061da4a049d8ba8c7852ce22a

See more details on using hashes here.

File details

Details for the file fastrepl-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: fastrepl-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

File hashes

Hashes for fastrepl-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c483f7a6394d92653e898be2126a0c3e589f7d5099994535214457b8bc4e5baf
MD5 6b435bd8663902d5d84a702353af4a1a
BLAKE2b-256 3cb24aa1d601f14d25716a3186a8f3e78e20b76c3dddb301c95c57673357a0c8

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