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 synda

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 synda -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.1.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.1-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: synda-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 afb7a18022a2fc1f93b47b78be81172aeed8ee8ffac7d833f97c9f338a6a7293
MD5 715b38942473e2835d99ef7f8bb44288
BLAKE2b-256 f849fa12f3d47cfd04fae3cb69c179b18ef06d11754e8fce9d5ad875c76c832f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: synda-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6099f9b667c6e7f354cb87aa3d58023ec88b296c1837a26b14c43a9dc4816a24
MD5 569506341a519917de0e28a6718eba8b
BLAKE2b-256 32fca420bc769404c21e965118fbc1e7a86690404e1c0b955dd6f7b315f755ee

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