Skip to main content

Send prompts and model responses to the Argilla A/B testing platform for annotations

Project description

prompt-sender

A tool for sending JSON files of prompts and model responses to the Argilla A/B testing platform for human annotations.

How to use

Simply install the package using pip:

pip install prompt-sender

Run prompt-sender --help for the required arguments:

$ prompt-sender --help
                                                                                                                                                                                  
 Usage: prompt-sender [OPTIONS]                                                                                                                                                   
                                                                                                                                                                                  
 Send prompts that need annotations to the A/B testing platform. Make sure WORKSPACE_NAME and DATASET_NAME already exist on the platform!                                         
                                                                                                                                                                                  
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --api-url                   TEXT  A/B testing platform URL [default: None] [required]                                                                                       │
│ *  --api-key                   TEXT  API key for testing platform [default: None] [required]                                                                                   │
│ *  --prompt-file               TEXT  The name of the file of prompts to send to the A/B testing platform [default: None] [required]                                            │
│ *  --workspace-name            TEXT  The name of the workspace in the Argilla A/B testing platform [default: None] [required]                                                  │
│ *  --dataset-name              TEXT  The dataset to add prompts to [default: None] [required]                                                                                  │
│    --install-completion              Install completion for the current shell.                                                                                                 │
│    --show-completion                 Show completion for the current shell, to copy it or customize the installation.                                                          │
│    --help                            Show this message and exit.                                                                                                               │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

How to develop

  1. Clone the repo: git clone git@github.com:langtech-bsc/prompt-sender.git.

  2. If poetry is not installed on your system, follow the instructions to install it:

  3. cd prompt-sender/ and create a virtual environment, either by using something like venv or by using poetry's built-in virtual environment, which can be created and activated by running poetry shell (run exit to deactivate).

  4. Run poetry install to install project dependencies.

  5. Run pre-commit install to set up the git pre-commit hook scripts

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

prompt_sender-0.2.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prompt_sender-0.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file prompt_sender-0.2.0.tar.gz.

File metadata

  • Download URL: prompt_sender-0.2.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for prompt_sender-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2eea2823c8519f24e4a9fbbb44545daa70afea99cc737275b3b9eadd6717cedd
MD5 cbe13504943a53a30cb9d17910217926
BLAKE2b-256 ecb8cd8258fbe82ec58f4b80067e84589f1277ef9b405c767eb58a2f21d56ef2

See more details on using hashes here.

File details

Details for the file prompt_sender-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: prompt_sender-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for prompt_sender-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc3cfed23d20bc92cc78bc73b5db224225ac7a75779a148809a43bbd0530659c
MD5 e66d7b44478b165d68516d1bf5d73d99
BLAKE2b-256 b2b43eefe6aed38828d3508445ab3e5f3f241cb86c00a5629b934d47176e719b

See more details on using hashes here.

Supported by

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