These customization options work together, letting you apply one or several to tailor Newton to your specific needs. Each approach varies in complexity and cost, so we suggest beginning with the lightest method available for your model and advancing only as your requirements evolve.
Prompting
Applies to: Newton Fusion. The Fusion model is steered at query time through the Direct Query API — no training, no configuration to manage:- Instructions — set the model’s role and behavior with
instruction_prompt(for example, “You are a perception agent analyzing activity in front of a house. Reply in 2-3 sentences.”). - Output format — make the prompt the schema: ask for “ONLY a JSON object:
{"activity": "...", "confidence": <0..1>}” and parse the response directly. - Generation parameters — control length and sampling with
max_new_tokens,temperature, and related parameters.
N-Shot Examples
Applies to: Newton Fusion & Newton Omega — through different mechanisms. A small set of labeled examples steers the model without any training:- Fusion — include labeled input/output examples in the prompt itself so the model imitates them, the same way you set instructions and output format in Prompting.
- Omega — build a labeled reference library of embedded sensor windows and classify new windows against it with a nearest-neighbor vote. See N-Shot Examples; the quickstart’s fault-detection example reaches 95% accuracy from 8 labeled windows this way.