Class: Asimov::Utils::ClassificationsFileValidator
- Inherits:
-
JsonlValidator
- Object
- JsonlValidator
- Asimov::Utils::ClassificationsFileValidator
- 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`