loadJSONLines(from:)
Loads an array of evaluation results from a JSONL file on disk.
Declaration
nonisolated(nonsending) static func loadJSONLines(from url: URL) async throws -> [EvaluationResult]Parameters
- url:
The file URL to read the JSONL data from.
Return Value
An array of EvaluationResult.
Discussion
Each line in the file is expected to be a valid JSON object representing an evaluation result.