Skip to main content

A synthetic data generator pipeline

Project description

Synda

[!WARNING] This project is in its very early stages of development and should not be used in production environments.

[!NOTE] PR are more than welcome. Check the roadmap if you want to contribute or create discussion to submit a use-case.

Synda (synthetic data) is a package that allows you to create synthetic data generation pipelines. It is opinionated and fast by design, with plans to become highly configurable in the future.

Installation

pip install nebula

Usage

  1. Create a YAML configuration file (e.g., config.yaml) that defines your pipeline:
input:
  type: csv
  properties:
    path: tests/stubs/simple_pipeline/source.csv
    target_column: content
    separator: "\t"

pipeline:
  - type: split
    method: chunk
    parameters:
      size: 500

  - type: generation
    method: llm
    parameters:
      provider: openai
      model: gpt-4o-mini
      template: |
        Ask a question regarding the content.
        content: {chunk}

        Instructions :
        1. Use english only
        2. Keep it short

        question:

  - type: ablation
    method: llm-judge-binary
    parameters:
      provider: openai
      model: gpt-4o-mini
      consensus: all
      criteria:
        - Is the text written in english?
        - Is the text consistent?

output:
  type: csv
  properties:
    path: tests/stubs/simple_pipeline/output.csv
    separator: "\t"
  1. Run the following command:
poetry run nebula -i config.yaml

Pipeline Structure

The Nebula pipeline consists of three main parts:

  • Input: Data source configuration
  • Pipeline: Sequence of transformation and generation steps
  • Output: Configuration for the generated data output

Available Steps

  • split: Breaks down data into chunks of defined size
  • generation: Generates content using LLM models
  • ablation: Filters data based on defined criteria

Roadmap

The following features are planned for future releases:

  • Implement a Proof of Concept
  • Implement a common interface (Node) for input and output of each step
  • Trace each synthetic data with his historic
  • Add SQLite support
  • Store each execution and step in DB
  • Allow pausing and resuming pipelines
  • Enable caching of each step's output
  • Implement scriptable step for developer
  • Design other step & methods

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

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

synda-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

synda-0.1.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file synda-0.1.0.tar.gz.

File metadata

  • Download URL: synda-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/24.1.0

File hashes

Hashes for synda-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c938afb1c1b69d2b5f374178d2f86528c1a073754b1e4d9aefea379df42c8fde
MD5 73a75baed7cbe4d1a4c1afd88785152a
BLAKE2b-256 7526a0bbea05c53c319740010a18a75788f1f5664196f7327d2f721ace91df7c

See more details on using hashes here.

File details

Details for the file synda-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: synda-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/24.1.0

File hashes

Hashes for synda-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0971a81ef045c44701ee9c4d56d8c40795eb7e92d878dedd238129a80d4b6ca1
MD5 f9b165a827b4a9602026149393ff0393
BLAKE2b-256 7210385fbdfda55d58cf3ff830346aaef02091a642b2a7004f4522ac9371ed52

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