Skip to main content

Syphus: Automatic Instruction-Response Generation Pipeline

Project description

Syphus: Automatic Instruction-Response Generation Pipeline

Hits

Paper | Documents | PyPI | Source Code

Installation

pip install --upgrade syphus

CLI Usage

You can easily use the Syphus CLI for operations.

First, choose an empty folder for initialization:

syphus init <folder>

The structure of the folder will be:

<folder>/
    config/
        gpt_info.yaml
        prompt.yaml
    resources/
        media_infos.json

Configuration

You can edit gpt_info.yaml and prompt.yaml to customize the generation.

Edit Media Data

Then, change the resources/media_infos.json to include the media data you want to generate.

You can use two different styles of resources/media_infos.json:

{
    "id_1": {
        "data_1": "data_1_1",
        "data_2": {
            "data_2_1": "data_2_1_1",
            "data_2_2": "data_2_2_1",
        }
    },
    "id_2": [
        "data_2_1",
        "data_2_2",
    ],
    "id_3": "data_3",
    ...
}

or

[
    {
        "id": "id_1",
        "data_1": "data_1",
        "data_2": {
            "data_2_1": "data_2_1",
            "data_2_2": "data_2_2",
        }
    },
    {
        "id": "id_2",
        "data_1": "data_1",
        "data_2": "data_2",
    },
    ...
]

Optionally, you can change the resources/media_infos.json to resources/media_infos.jsonl, but the format should like the second one of resources/media_infos.json:

{"id": "id_1", "data_1": "data_1", "data_2": "data_2"}
{"id": "id_2", "data_1": "data_1", "data_2": "data_2"}

Generate

After editing the resources/media_infos.json, you can generate the instruction-response pairs:

syphus query <folder>

or

cd <folder>
syphus query

You can use syphus query --help to see more options.

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

syphus-0.0.6.4.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

syphus-0.0.6.4-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file syphus-0.0.6.4.tar.gz.

File metadata

  • Download URL: syphus-0.0.6.4.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for syphus-0.0.6.4.tar.gz
Algorithm Hash digest
SHA256 9de6ed07cba03fea930ebc8ea243b0d9086625e380d1132500940f494dd0a131
MD5 f9c138e7cee71732fdaff0f997b64a6c
BLAKE2b-256 48a66f5fe38168855bc8e52b3d86c32dc72a69ccb773e01bc8fc6e0badb2915e

See more details on using hashes here.

File details

Details for the file syphus-0.0.6.4-py3-none-any.whl.

File metadata

  • Download URL: syphus-0.0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for syphus-0.0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3baba398b396e033e07cd8a94068edee38b596cb3898ffd5dfba84b329b7b9f3
MD5 92e95bf93501a53516a164430adae052
BLAKE2b-256 90a40f89eb596c02c57049c0136a91650f37be4597e05081dea3b690c8de9412

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