Class TrainingDataDumper
java.lang.Object
org.ek9lang.assist.TrainingDataDumper
Outputs Q&A pairs in JSONL format for LLM fine-tuning.
Supports both instruction/response format and chat-format.
Used by the -Q CLI flag.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddumpChatJsonl(QuestionRegistry registry, PrintStream out) Dump all Q&A pairs as chat-format JSONL (for models expecting conversation).voiddumpJsonl(QuestionRegistry registry, PrintStream out) Dump all Q&A pairs as instruction/response JSONL to the given output stream.(package private) static StringescapeJson(String value)
-
Constructor Details
-
TrainingDataDumper
public TrainingDataDumper()
-
-
Method Details
-
dumpJsonl
Dump all Q&A pairs as instruction/response JSONL to the given output stream. Each canonical question produces one entry, plus one entry per alternate phrasing. -
dumpChatJsonl
Dump all Q&A pairs as chat-format JSONL (for models expecting conversation). -
escapeJson
-