Class: Asimov::Utils::ClassificationsFileValidator

Inherits:
JsonlValidator show all
Defined in:
lib/asimov/utils/classifications_file_validator.rb

Overview

Validates that a file is in the “classifications” format used by OpenAI. The file is a JSONL file, with “text” and “label” keys for each line that have string values and an optional “metadata” key that can have any value. No other keys are permitted.

The only method that clients should call on instances of this class is ‘validate`

Method Summary

Methods inherited from JsonlValidator

#validate