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.SimpleEvaluator(
    node=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.8.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

fastrepl-0.0.8-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastrepl-0.0.8.tar.gz
  • Upload date:
  • Size: 19.9 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.8.tar.gz
Algorithm Hash digest
SHA256 f1a7f6558d1fce3b753122e99d01a9ca7ba9c56a6dd26e647d3cbcd5f5399f06
MD5 994f69b66a870929a1a8aa9b1d5bc4d4
BLAKE2b-256 189cb267280163efd401aad37c03ced4a08d1af722858652448a3a95892dc313

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastrepl-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 28.9 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c99effa7da0e34e780640a1b55f8728239c86d9293568cf4d2b84202ee2ee661
MD5 f535bfd318c0cfb5dd80c2a5f014509d
BLAKE2b-256 4f0608621185cabf5f5571d783885fcef29f4500d1fec0ad7ed2fb552a386380

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