Skip to main content

Create synthetic datasets based on your documents

Project description

AfterImage

AfterImage is a flexible Python framework for generating synthetic conversational datasets using State-of-the-Art Large Language Models (LLMs), primarily Google Gemini and OpenAI-compatible APIs.

It is designed to be highly customizable, enabling tailored instruction generation, persona-based simulation, diverse document ingestion, and context-aware conversation generation.

🚀 Getting Started

To get started with AfterImage, please refer to the Quickstart Guide. It covers:

  • Installation: How to set up the library.
  • Basic Usage: Generating simple conversations.
  • RAG & Context: Using documents to drive questions.
  • Personas: Creating varied user personas for realistic datasets.

📖 Documentation

📦 Installation

pip install git+https://github.com/altaidevorg/afterimage.git

Optional extras (see pyproject.toml):

  • embeddings-localsentence-transformers for ProcessEmbeddingProvider, QdrantRetriever (by model name), and QualityChecker semantic checks.
  • server — FastAPI app (afterimage-server).
  • training — Torch/TRL stack for examples/demo_ui/training_scripts/train.py.
pip install "afterimage[embeddings-local]@git+https://github.com/altaidevorg/afterimage.git"

✨ Key Features

  • Async-First: High-performance parallel generation.
  • Persona Simulation: Realistic user diversity.
  • Context-Aware: Grounds conversations in your documents (RAG).
  • Multi-Modal: Support for text and potentially other modalities in future.
  • Monitoring: Real-time generation metrics and alerts.

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

afterimage-0.13.0.tar.gz (96.1 kB view details)

Uploaded Source

Built Distribution

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

afterimage-0.13.0-py3-none-any.whl (99.4 kB view details)

Uploaded Python 3

File details

Details for the file afterimage-0.13.0.tar.gz.

File metadata

  • Download URL: afterimage-0.13.0.tar.gz
  • Upload date:
  • Size: 96.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.19

File hashes

Hashes for afterimage-0.13.0.tar.gz
Algorithm Hash digest
SHA256 befbd6900dad97826049c491f1ce56a2e39af2d83ca16201e95c428ba3bd6642
MD5 fb9bc03423524fbf0e0e7e9a9773c21a
BLAKE2b-256 a27d00d70784abff0fa7de4d2dbf0fd63bedd3c8d8413b046cc7ab6644757ea0

See more details on using hashes here.

File details

Details for the file afterimage-0.13.0-py3-none-any.whl.

File metadata

File hashes

Hashes for afterimage-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbfb533672d6feb1092383cfd7f5a59ee733c4ce5a7e54cd23cf147abbbf5d9d
MD5 37c8dd5f319a18cd2cd7cb727c47b1e2
BLAKE2b-256 26877780437d98bcd7ca829a56c86e3d12a64a78eff707ab0af570808466b0ee

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