One model, many tasks
Classification with labels you make up, and named entities of types you choose, from one LLM. Label scores are the model's own probabilities.
Qwen2.5-0.5B-Instruct
The code
const t = tasks(llm);
await t.classify(text, ["billing", "bug report", "feature request"]);
await t.ner(text, ["person", "city", "product"]);
Full source: site/src/examples/tasks.ts