Class: Asimov::Utils::TextEntryFileValidator

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

Overview

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

Method Summary

Methods inherited from JsonlValidator

#validate