Class ChatGptImporter

Imports a ChatGPT conversations.json export into a SqliteBrain.

Usage:

const importer = new ChatGptImporter(brain);
const result = await importer.import('/path/to/conversations.json');

Constructors

Methods

Constructors

Methods

  • Parse conversations.json and import all conversations and message pairs.

    Parameters

    • sourcePath: string

      Absolute path to the ChatGPT conversations.json file.

    • Optional options: Pick<ImportOptions, "dedup">

    Returns Promise<ImportResult>

    ImportResult with counts of imported traces, skipped duplicates, and any per-item error messages.