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

Uploaded Source

Built Distribution

fastrepl-0.0.5-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastrepl-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 9622949fee9402316bd44ad97ca2eed806ec207c5361dbf109aee5f07696c2cb
MD5 4250a5b8e0c3157d07fa9013c4333ff8
BLAKE2b-256 910a1a1aa6bacf18d96b762fe3080abc31787f668c622994e1b394eea4050ac1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastrepl-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 28.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7a12477ba67fb31ddef9d6f1fff732c2427bc5b0921f22fe43583e55c4ca59a6
MD5 97b26b2c0c85fcdfe9f471dce6d8fb38
BLAKE2b-256 f9b31cd6982b297e17a27566639d40ad93ac8cf76c604b9f919804955cd78ec2

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