Builds classifier datasets from Spectre agent routing metadata.
Training examples live in configured dataset sources. Rows must carry a
label or intent, and this module exports only labels that exist on the
agent's routes or policy branches.
{:ok, rows} =
Spectre.Training.Dataset.from_agent(MyApp.Agent,
source: "training/raw_intents.jsonl"
)
Summary
Functions
Collects classifier rows from labeled dataset sources for the agent's known route and policy labels.
Types
Functions
Collects classifier rows from labeled dataset sources for the agent's known route and policy labels.
Supported dataset files:
.jsonfiles - list of objects withtextandlabel/intent..jsonlfiles - one JSON object per line withtextandlabel/intent.
{:ok, rows} = Spectre.Training.Dataset.from_agent(MyApp.Agent)