/Sensei

Generate Synthetic Data Using OpenAI

Primary LanguagePython

Sensei (先生)

A simple, powerful, minimal codebase to generate synthetic data using OpenAI

alt text

How to run

  • pip install openai numpy
  • Change GPT_MODEL, OPENAI_API_KEY and OUTPUT_FILE_PATH under params.py
  • Run with python main.py

Optional

  • Change the topics in topics.py
  • Change the system contexts in system_messages.py
  • Change the number of workers in params.py