Skip to main content

LLM Labeling UI

total download version

LLM Labeling UI

About

WARNING: This software is mainly developed according to my personal habits and is still under development. We are not responsible for any data loss that may occur during your use.

LLM Labeling UI is a project fork from Chatbot UI, and made the following modifications to make it more suitable for large language model data labeling tasks.

  • The backend code is implemented in python, the frontend code is precompiled, so it can run without a nodejs environment
  • The Chatbot UI uses localStorage to save data, with a size limit of 5MB, the LLM Labeling UI can load local data when starting the service, with no size limit
  • Web interaction:
    • Browse data in pages, search by keywords, filter by messages count.
    • Directly modify/delete model's response results.
    • Split long conversations into multiple conversations
    • A confirmation button has been added before deleting the conversation message
    • Display the number of messages and token length in the current conversation
    • Allow modify system prompt during the dialogue
    • Replace string in current conversation
  • Useful command line tools to help you clean/manage your data, such as language cleaning, duplicate removal, embedding cluster, etc.

Quick Start

pip install llm-labeling-ui

1. Provide OpenAI API Key

You can provide openai api key before start server or configure it later in the web page.

export OPENAI_API_KEY=YOUR_KEY
export OPENAI_ORGANIZATION=YOUR_ORG

2. Start Server

llm-labeling-ui server start --data chatbot-ui-v4-format-history.json --tokenizer meta-llama/Llama-2-7b
  • --data: Chatbot-UI-v4 format, here is an example. Before the service starts, a chatbot-ui-v4-format-history.sqlite file will be created based on chatbot-ui-v4-format-history.json. All your modifications on the page will be saved into the sqlite file. If the chatbot-ui-v4-format-history.sqlite file already exists, it will be automatically read.
  • --tokenizer is used to display how many tokens the current conversation on the webpage contains. Please note that this is not the token consumed by calling the openai api.

Command Line Tools

  • cluster: Cluster operations, such as create embedding, run cluster, semantic deduplication, etc.
  • conversation: Conversation operations, such as remove prefix, remove deduplication, etc
  • tag: Add tags to you data, such as lang classification(en,zh..), traditional or simplified chinese classification, etc.

User --help to see more details, such as:

llm-labeling-ui cluster --help

Usage: llm-labeling-ui cluster [OPTIONS] COMMAND [ARGS]...

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                  │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ create-embedding  Create embedding                                           │
│ dedup             Delete redundant data in the same clustering result        │
│                   according to certain strategies.                           │
| prune-embedding   Remove embedding not exists in db                          |
│ run               DBSCAN embedding cluster                                   │
│ view              View cluster result                                        │
╰──────────────────────────────────────────────────────────────────────────────

Metadata

Release files for llm-labeling-ui 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-labeling-ui 0.10.2
File Size Uploaded
llm-labeling-ui-0.10.2.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-labeling-ui 0.10.2
File Interpreter ABI Platform
llm_labeling_ui-0.10.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 MB

Release files / llm-labeling-ui-0.10.2.tar.gz

Download URL llm-labeling-ui-0.10.2.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
8dcf102fbdc19bf099ef9dc0c321817000f35ba05d29cb97b52972c001c29629
BLAKE2b-256 checksum
How to use checksums
82f2b8c56affd41e21b7d4070b12542e9e935d0631ef5e0eef8e3f6c8854c436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / llm_labeling_ui-0.10.2-py3-none-any.whl

Download URL llm_labeling_ui-0.10.2-py3-none-any.whl
Size 4.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
813fb40ab58736c11d302668e9045ee4cd21d4bae96a21b4d726930ab894e1c0
BLAKE2b-256 checksum
How to use checksums
a3744bbc99a354d3cd1b419e96c25dc86952ba7cac665c2219f34e08083379c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.10.2 This release

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page