Class: Asimov::Utils::TextEntryFileValidator
- Inherits:
-
JsonlValidator
- Object
- JsonlValidator
- Asimov::Utils::TextEntryFileValidator
- 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.