Performance & cost
This session
- Delivery time · median
- —
- Live model compute
- —
- Live input tokens
- 0
- Est. cost · USD
- $0.00
Bypass examples to measure live inference. Uses your quota.
Measurement details · 0 successful requests
- Successful requests
- 0
Run an example for free to see its measurements.
Model compute is the average per measured request. Delivery time is the median browser time for successful requests, including queue, network, and retries. Cached delivery speed is not inference speed. Model compute can exceed browser time when one request processes many inputs.
Tokens come from response headers. Inference costs use $0.04 per million input tokens, before plan credits. The estimate includes live and recorded tokens at the same rate; cached examples are not charged again. Missing usage is unavailable or a partial total (≥). Demo resets keep these totals; reload to start a new session.
Pick a request and hit Search with AI.
Build with the SDKTypeScript · Python · dm1
One request from this demo. Copy it into your app.
Uses your MS_API_KEY and quota. Keep the key on your server.
npm install @cloudraker/milliseconds
export MS_API_KEY="your-api-key"import { DecisionMachine } from "@cloudraker/milliseconds";
// Run on your server; reads MS_API_KEY from the environment.
const dm = new DecisionMachine();
const { result, usage } = await dm.yesNo(
[
"Hearth Coffee Maker Single Serve. Programmable brewing so coffee is ready when you wake. Hot plate keeps the carafe warm for two hours. Reusable mesh filter. 5 cups. Category: kitchen. Price $91.77. Rated 4.8 stars.",
"Brewline Coffee Maker Pour-Over. Hot plate keeps the carafe warm for two hours. Programmable brewing so coffee is ready when you wake. Brew strength control. 5 cups. Category: kitchen. Price $106.02. Rated 4.2 stars.",
"Hearth Coffee Maker Single Serve. Brew strength control. Hot plate keeps the carafe warm for two hours. Programmable brewing so coffee is ready when you wake. 5 cups. Category: kitchen. Price $114.39. Rated 4.3 stars.",
"Kettleworks Coffee Maker Pour-Over. Programmable brewing so coffee is ready when you wake. Reusable mesh filter. Hot plate keeps the carafe warm for two hours. 12 cups. Category: kitchen. Price $55.88. Rated 4.0 stars.",
"Kettleworks Coffee Maker Cold Brew. Reusable mesh filter. Programmable brewing so coffee is ready when you wake. Hot plate keeps the carafe warm for two hours. 12 cups. Category: kitchen. Price $145.08. Rated 4.8 stars.",
"Hearth Coffee Maker Cold Brew. Programmable brewing so coffee is ready when you wake. Brew strength control. Hot plate keeps the carafe warm for two hours. 12 cups. Category: kitchen. Price $67.02. Rated 4.3 stars.",
"Vesta French Press 1 L. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $28.39. Rated 4.6 stars.",
"Kettleworks French Press Insulated. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $41.34. Rated 3.7 stars.",
"Kettleworks French Press 350 ml. Dishwasher safe. Fine mesh plunger for sediment-free coffee. Double-wall steel keeps coffee hot longer than glass. glass. Category: kitchen. Price $18.67. Rated 4.2 stars.",
"Kettleworks French Press 1 L. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $33.62. Rated 3.8 stars.",
"Kettleworks French Press 1 L. Dishwasher safe. Fine mesh plunger for sediment-free coffee. Double-wall steel keeps coffee hot longer than glass. glass. Category: kitchen. Price $44.50. Rated 4.5 stars.",
"Vesta French Press 1 L. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $22.17. Rated 3.6 stars.",
"Ridgeline Water Bottle Insulated 32 oz. Leakproof cap. Insulated steel keeps water cold all day and coffee hot for hours. Collapses flat when empty. blue. Category: outdoors. Price $12.03. Rated 4.7 stars.",
"Ridgeline Water Bottle Insulated 32 oz. Insulated steel keeps water cold all day and coffee hot for hours. Built-in filter for stream water. Leakproof cap. blue. Category: outdoors. Price $12.01. Rated 4.2 stars.",
"Ridgeline Water Bottle Filter. Insulated steel keeps water cold all day and coffee hot for hours. Leakproof cap. Built-in filter for stream water. black. Category: outdoors. Price $14.22. Rated 4.7 stars.",
"Trailhead Water Bottle Tritan 1 L. Insulated steel keeps water cold all day and coffee hot for hours. Leakproof cap. Collapses flat when empty. blue. Category: outdoors. Price $23.00. Rated 3.8 stars.",
"Ridgeline Water Bottle Filter. Leakproof cap. Collapses flat when empty. Insulated steel keeps water cold all day and coffee hot for hours. green. Category: outdoors. Price $44.18. Rated 3.5 stars.",
"Ridgeline Water Bottle Collapsible. Insulated steel keeps water cold all day and coffee hot for hours. Collapses flat when empty. Leakproof cap. black. Category: outdoors. Price $35.36. Rated 4.2 stars.",
"Summit Supply Vacuum Bottle 1 L. Rugged stainless steel that shrugs off drops. Keeps coffee steaming hot for 18 hours on the trail. Wide mouth fits ice cubes. steel, stainless steel. Category: kitchen. Price $27.63. Rated 4.5 stars.",
"Summit Supply Vacuum Bottle 500 ml. Wide mouth fits ice cubes. Carabiner loop for a pack strap. Keeps coffee steaming hot for 18 hours on the trail. steel, stainless steel. Category: kitchen. Price $31.41. Rated 4.2 stars.",
"Thermik Vacuum Bottle Trail. Carabiner loop for a pack strap. Wide mouth fits ice cubes. Keeps coffee steaming hot for 18 hours on the trail. steel, stainless steel. Category: kitchen. Price $19.20. Rated 3.9 stars.",
"Ridgeline Vacuum Bottle 1 L. Rugged stainless steel that shrugs off drops. Keeps coffee steaming hot for 18 hours on the trail. Carabiner loop for a pack strap. steel, stainless steel. Category: kitchen. Price $45.58. Rated 4.2 stars.",
"Summit Supply Vacuum Bottle 750 ml. Carabiner loop for a pack strap. Keeps coffee steaming hot for 18 hours on the trail. Wide mouth fits ice cubes. steel, stainless steel. Category: kitchen. Price $53.03. Rated 3.8 stars.",
"Summit Supply Vacuum Bottle 1 L. Wide mouth fits ice cubes. Keeps coffee steaming hot for 18 hours on the trail. Rugged stainless steel that shrugs off drops. forest, stainless steel. Category: kitchen. Price $47.92. Rated 4.9 stars.",
"Ridgeline Hiking Boots Low. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. Breathable mesh panels. 8, gray. Category: outdoors. Price $132.50. Rated 4.7 stars.",
"Ridgeline Hiking Boots Lightweight. Waterproof membrane keeps feet dry on wet trails. Breathable mesh panels. Grippy lugged outsole. 10, brown. Category: outdoors. Price $203.56. Rated 4.6 stars.",
"Ridgeline Hiking Boots Low. Breathable mesh panels. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. 11, brown. Category: outdoors. Price $64.99. Rated 4.5 stars.",
"Ridgeline Hiking Boots Low. Breathable mesh panels. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. 9, olive. Category: outdoors. Price $218.41. Rated 4.3 stars.",
"Ridgeline Hiking Boots Mid. Breathable mesh panels. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. 10, gray. Category: outdoors. Price $142.50. Rated 4.0 stars.",
"Trailhead Hiking Boots Lightweight. Grippy lugged outsole. Breathable mesh panels. Waterproof membrane keeps feet dry on wet trails. 8, olive. Category: outdoors. Price $216.00. Rated 3.5 stars."
],
[
"This product is the kind of thing a shopper asking for something to keep coffee hot on a hike is shopping for.",
"This product does everything the request asks for: something to keep coffee hot on a hike."
],
{
"when_true": "The product's own stated features cover the whole request.",
"when_false": "The product misses any part of the request, or only shares a word with it."
}
).withUsage();
console.log(result);
console.log({ inputTokens: usage.inputTokens, modelMs: usage.inferenceMs });import { DecisionMachine } from "@cloudraker/milliseconds";
// Run on your server; reads MS_API_KEY from the environment.
const dm = new DecisionMachine();
const { result, usage } = await dm.classify(
"something to keep coffee hot on a hike",
{
"electronics": "Audio, headphones, phones and phone accessories, keyboards, mice, computers, cameras, gadgets",
"kitchen": "Cooking, coffee, blenders, drinkware, insulated bottles and tumblers, food storage",
"outdoors": "Hiking, camping, sports, cycling, travel gear, outdoor clothing",
"toys": "Children's toys, games, building kits and gifts for kids",
"office": "Desks, chairs, stationery, paper, work-from-home furniture and accessories",
"any": "The search does not point to one department"
}
).withUsage();
console.log(result);
console.log({ inputTokens: usage.inputTokens, modelMs: usage.inferenceMs });pip install cloudraker-milliseconds
export MS_API_KEY="your-api-key"from milliseconds import DecisionMachine
# Reads MS_API_KEY from the environment.
dm = DecisionMachine()
result = dm.yes_no(
[
"Hearth Coffee Maker Single Serve. Programmable brewing so coffee is ready when you wake. Hot plate keeps the carafe warm for two hours. Reusable mesh filter. 5 cups. Category: kitchen. Price $91.77. Rated 4.8 stars.",
"Brewline Coffee Maker Pour-Over. Hot plate keeps the carafe warm for two hours. Programmable brewing so coffee is ready when you wake. Brew strength control. 5 cups. Category: kitchen. Price $106.02. Rated 4.2 stars.",
"Hearth Coffee Maker Single Serve. Brew strength control. Hot plate keeps the carafe warm for two hours. Programmable brewing so coffee is ready when you wake. 5 cups. Category: kitchen. Price $114.39. Rated 4.3 stars.",
"Kettleworks Coffee Maker Pour-Over. Programmable brewing so coffee is ready when you wake. Reusable mesh filter. Hot plate keeps the carafe warm for two hours. 12 cups. Category: kitchen. Price $55.88. Rated 4.0 stars.",
"Kettleworks Coffee Maker Cold Brew. Reusable mesh filter. Programmable brewing so coffee is ready when you wake. Hot plate keeps the carafe warm for two hours. 12 cups. Category: kitchen. Price $145.08. Rated 4.8 stars.",
"Hearth Coffee Maker Cold Brew. Programmable brewing so coffee is ready when you wake. Brew strength control. Hot plate keeps the carafe warm for two hours. 12 cups. Category: kitchen. Price $67.02. Rated 4.3 stars.",
"Vesta French Press 1 L. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $28.39. Rated 4.6 stars.",
"Kettleworks French Press Insulated. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $41.34. Rated 3.7 stars.",
"Kettleworks French Press 350 ml. Dishwasher safe. Fine mesh plunger for sediment-free coffee. Double-wall steel keeps coffee hot longer than glass. glass. Category: kitchen. Price $18.67. Rated 4.2 stars.",
"Kettleworks French Press 1 L. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $33.62. Rated 3.8 stars.",
"Kettleworks French Press 1 L. Dishwasher safe. Fine mesh plunger for sediment-free coffee. Double-wall steel keeps coffee hot longer than glass. glass. Category: kitchen. Price $44.50. Rated 4.5 stars.",
"Vesta French Press 1 L. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $22.17. Rated 3.6 stars.",
"Ridgeline Water Bottle Insulated 32 oz. Leakproof cap. Insulated steel keeps water cold all day and coffee hot for hours. Collapses flat when empty. blue. Category: outdoors. Price $12.03. Rated 4.7 stars.",
"Ridgeline Water Bottle Insulated 32 oz. Insulated steel keeps water cold all day and coffee hot for hours. Built-in filter for stream water. Leakproof cap. blue. Category: outdoors. Price $12.01. Rated 4.2 stars.",
"Ridgeline Water Bottle Filter. Insulated steel keeps water cold all day and coffee hot for hours. Leakproof cap. Built-in filter for stream water. black. Category: outdoors. Price $14.22. Rated 4.7 stars.",
"Trailhead Water Bottle Tritan 1 L. Insulated steel keeps water cold all day and coffee hot for hours. Leakproof cap. Collapses flat when empty. blue. Category: outdoors. Price $23.00. Rated 3.8 stars.",
"Ridgeline Water Bottle Filter. Leakproof cap. Collapses flat when empty. Insulated steel keeps water cold all day and coffee hot for hours. green. Category: outdoors. Price $44.18. Rated 3.5 stars.",
"Ridgeline Water Bottle Collapsible. Insulated steel keeps water cold all day and coffee hot for hours. Collapses flat when empty. Leakproof cap. black. Category: outdoors. Price $35.36. Rated 4.2 stars.",
"Summit Supply Vacuum Bottle 1 L. Rugged stainless steel that shrugs off drops. Keeps coffee steaming hot for 18 hours on the trail. Wide mouth fits ice cubes. steel, stainless steel. Category: kitchen. Price $27.63. Rated 4.5 stars.",
"Summit Supply Vacuum Bottle 500 ml. Wide mouth fits ice cubes. Carabiner loop for a pack strap. Keeps coffee steaming hot for 18 hours on the trail. steel, stainless steel. Category: kitchen. Price $31.41. Rated 4.2 stars.",
"Thermik Vacuum Bottle Trail. Carabiner loop for a pack strap. Wide mouth fits ice cubes. Keeps coffee steaming hot for 18 hours on the trail. steel, stainless steel. Category: kitchen. Price $19.20. Rated 3.9 stars.",
"Ridgeline Vacuum Bottle 1 L. Rugged stainless steel that shrugs off drops. Keeps coffee steaming hot for 18 hours on the trail. Carabiner loop for a pack strap. steel, stainless steel. Category: kitchen. Price $45.58. Rated 4.2 stars.",
"Summit Supply Vacuum Bottle 750 ml. Carabiner loop for a pack strap. Keeps coffee steaming hot for 18 hours on the trail. Wide mouth fits ice cubes. steel, stainless steel. Category: kitchen. Price $53.03. Rated 3.8 stars.",
"Summit Supply Vacuum Bottle 1 L. Wide mouth fits ice cubes. Keeps coffee steaming hot for 18 hours on the trail. Rugged stainless steel that shrugs off drops. forest, stainless steel. Category: kitchen. Price $47.92. Rated 4.9 stars.",
"Ridgeline Hiking Boots Low. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. Breathable mesh panels. 8, gray. Category: outdoors. Price $132.50. Rated 4.7 stars.",
"Ridgeline Hiking Boots Lightweight. Waterproof membrane keeps feet dry on wet trails. Breathable mesh panels. Grippy lugged outsole. 10, brown. Category: outdoors. Price $203.56. Rated 4.6 stars.",
"Ridgeline Hiking Boots Low. Breathable mesh panels. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. 11, brown. Category: outdoors. Price $64.99. Rated 4.5 stars.",
"Ridgeline Hiking Boots Low. Breathable mesh panels. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. 9, olive. Category: outdoors. Price $218.41. Rated 4.3 stars.",
"Ridgeline Hiking Boots Mid. Breathable mesh panels. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. 10, gray. Category: outdoors. Price $142.50. Rated 4.0 stars.",
"Trailhead Hiking Boots Lightweight. Grippy lugged outsole. Breathable mesh panels. Waterproof membrane keeps feet dry on wet trails. 8, olive. Category: outdoors. Price $216.00. Rated 3.5 stars."
],
[
"This product is the kind of thing a shopper asking for something to keep coffee hot on a hike is shopping for.",
"This product does everything the request asks for: something to keep coffee hot on a hike."
],
when_true="The product's own stated features cover the whole request.",
when_false="The product misses any part of the request, or only shares a word with it."
)
print(result)from milliseconds import DecisionMachine
# Reads MS_API_KEY from the environment.
dm = DecisionMachine()
result = dm.classify(
"something to keep coffee hot on a hike",
{
"electronics": "Audio, headphones, phones and phone accessories, keyboards, mice, computers, cameras, gadgets",
"kitchen": "Cooking, coffee, blenders, drinkware, insulated bottles and tumblers, food storage",
"outdoors": "Hiking, camping, sports, cycling, travel gear, outdoor clothing",
"toys": "Children's toys, games, building kits and gifts for kids",
"office": "Desks, chairs, stationery, paper, work-from-home furniture and accessories",
"any": "The search does not point to one department"
}
)
print(result)npm install -g @cloudraker/milliseconds
export MS_API_KEY="your-api-key"# Reads MS_API_KEY. JSON on stdin supplies the complete request.
dm1 yes-no --json --usage <<'DM1_REQUEST'
{
"texts": [
"Hearth Coffee Maker Single Serve. Programmable brewing so coffee is ready when you wake. Hot plate keeps the carafe warm for two hours. Reusable mesh filter. 5 cups. Category: kitchen. Price $91.77. Rated 4.8 stars.",
"Brewline Coffee Maker Pour-Over. Hot plate keeps the carafe warm for two hours. Programmable brewing so coffee is ready when you wake. Brew strength control. 5 cups. Category: kitchen. Price $106.02. Rated 4.2 stars.",
"Hearth Coffee Maker Single Serve. Brew strength control. Hot plate keeps the carafe warm for two hours. Programmable brewing so coffee is ready when you wake. 5 cups. Category: kitchen. Price $114.39. Rated 4.3 stars.",
"Kettleworks Coffee Maker Pour-Over. Programmable brewing so coffee is ready when you wake. Reusable mesh filter. Hot plate keeps the carafe warm for two hours. 12 cups. Category: kitchen. Price $55.88. Rated 4.0 stars.",
"Kettleworks Coffee Maker Cold Brew. Reusable mesh filter. Programmable brewing so coffee is ready when you wake. Hot plate keeps the carafe warm for two hours. 12 cups. Category: kitchen. Price $145.08. Rated 4.8 stars.",
"Hearth Coffee Maker Cold Brew. Programmable brewing so coffee is ready when you wake. Brew strength control. Hot plate keeps the carafe warm for two hours. 12 cups. Category: kitchen. Price $67.02. Rated 4.3 stars.",
"Vesta French Press 1 L. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $28.39. Rated 4.6 stars.",
"Kettleworks French Press Insulated. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $41.34. Rated 3.7 stars.",
"Kettleworks French Press 350 ml. Dishwasher safe. Fine mesh plunger for sediment-free coffee. Double-wall steel keeps coffee hot longer than glass. glass. Category: kitchen. Price $18.67. Rated 4.2 stars.",
"Kettleworks French Press 1 L. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $33.62. Rated 3.8 stars.",
"Kettleworks French Press 1 L. Dishwasher safe. Fine mesh plunger for sediment-free coffee. Double-wall steel keeps coffee hot longer than glass. glass. Category: kitchen. Price $44.50. Rated 4.5 stars.",
"Vesta French Press 1 L. Double-wall steel keeps coffee hot longer than glass. Fine mesh plunger for sediment-free coffee. Dishwasher safe. glass. Category: kitchen. Price $22.17. Rated 3.6 stars.",
"Ridgeline Water Bottle Insulated 32 oz. Leakproof cap. Insulated steel keeps water cold all day and coffee hot for hours. Collapses flat when empty. blue. Category: outdoors. Price $12.03. Rated 4.7 stars.",
"Ridgeline Water Bottle Insulated 32 oz. Insulated steel keeps water cold all day and coffee hot for hours. Built-in filter for stream water. Leakproof cap. blue. Category: outdoors. Price $12.01. Rated 4.2 stars.",
"Ridgeline Water Bottle Filter. Insulated steel keeps water cold all day and coffee hot for hours. Leakproof cap. Built-in filter for stream water. black. Category: outdoors. Price $14.22. Rated 4.7 stars.",
"Trailhead Water Bottle Tritan 1 L. Insulated steel keeps water cold all day and coffee hot for hours. Leakproof cap. Collapses flat when empty. blue. Category: outdoors. Price $23.00. Rated 3.8 stars.",
"Ridgeline Water Bottle Filter. Leakproof cap. Collapses flat when empty. Insulated steel keeps water cold all day and coffee hot for hours. green. Category: outdoors. Price $44.18. Rated 3.5 stars.",
"Ridgeline Water Bottle Collapsible. Insulated steel keeps water cold all day and coffee hot for hours. Collapses flat when empty. Leakproof cap. black. Category: outdoors. Price $35.36. Rated 4.2 stars.",
"Summit Supply Vacuum Bottle 1 L. Rugged stainless steel that shrugs off drops. Keeps coffee steaming hot for 18 hours on the trail. Wide mouth fits ice cubes. steel, stainless steel. Category: kitchen. Price $27.63. Rated 4.5 stars.",
"Summit Supply Vacuum Bottle 500 ml. Wide mouth fits ice cubes. Carabiner loop for a pack strap. Keeps coffee steaming hot for 18 hours on the trail. steel, stainless steel. Category: kitchen. Price $31.41. Rated 4.2 stars.",
"Thermik Vacuum Bottle Trail. Carabiner loop for a pack strap. Wide mouth fits ice cubes. Keeps coffee steaming hot for 18 hours on the trail. steel, stainless steel. Category: kitchen. Price $19.20. Rated 3.9 stars.",
"Ridgeline Vacuum Bottle 1 L. Rugged stainless steel that shrugs off drops. Keeps coffee steaming hot for 18 hours on the trail. Carabiner loop for a pack strap. steel, stainless steel. Category: kitchen. Price $45.58. Rated 4.2 stars.",
"Summit Supply Vacuum Bottle 750 ml. Carabiner loop for a pack strap. Keeps coffee steaming hot for 18 hours on the trail. Wide mouth fits ice cubes. steel, stainless steel. Category: kitchen. Price $53.03. Rated 3.8 stars.",
"Summit Supply Vacuum Bottle 1 L. Wide mouth fits ice cubes. Keeps coffee steaming hot for 18 hours on the trail. Rugged stainless steel that shrugs off drops. forest, stainless steel. Category: kitchen. Price $47.92. Rated 4.9 stars.",
"Ridgeline Hiking Boots Low. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. Breathable mesh panels. 8, gray. Category: outdoors. Price $132.50. Rated 4.7 stars.",
"Ridgeline Hiking Boots Lightweight. Waterproof membrane keeps feet dry on wet trails. Breathable mesh panels. Grippy lugged outsole. 10, brown. Category: outdoors. Price $203.56. Rated 4.6 stars.",
"Ridgeline Hiking Boots Low. Breathable mesh panels. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. 11, brown. Category: outdoors. Price $64.99. Rated 4.5 stars.",
"Ridgeline Hiking Boots Low. Breathable mesh panels. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. 9, olive. Category: outdoors. Price $218.41. Rated 4.3 stars.",
"Ridgeline Hiking Boots Mid. Breathable mesh panels. Grippy lugged outsole. Waterproof membrane keeps feet dry on wet trails. 10, gray. Category: outdoors. Price $142.50. Rated 4.0 stars.",
"Trailhead Hiking Boots Lightweight. Grippy lugged outsole. Breathable mesh panels. Waterproof membrane keeps feet dry on wet trails. 8, olive. Category: outdoors. Price $216.00. Rated 3.5 stars."
],
"statements": [
"This product is the kind of thing a shopper asking for something to keep coffee hot on a hike is shopping for.",
"This product does everything the request asks for: something to keep coffee hot on a hike."
],
"when_true": "The product's own stated features cover the whole request.",
"when_false": "The product misses any part of the request, or only shares a word with it."
}
DM1_REQUEST# Reads MS_API_KEY. JSON on stdin supplies the complete request.
dm1 classify --json --usage <<'DM1_REQUEST'
{
"text": "something to keep coffee hot on a hike",
"labels": {
"electronics": "Audio, headphones, phones and phone accessories, keyboards, mice, computers, cameras, gadgets",
"kitchen": "Cooking, coffee, blenders, drinkware, insulated bottles and tumblers, food storage",
"outdoors": "Hiking, camping, sports, cycling, travel gear, outdoor clothing",
"toys": "Children's toys, games, building kits and gifts for kids",
"office": "Desks, chairs, stationery, paper, work-from-home furniture and accessories",
"any": "The search does not point to one department"
}
}
DM1_REQUESTUnder the hood How it works & limitations
API calls/yes-no/classify
How it works
A local search index selects candidate products. The model checks how well each candidate fits the request and identifies shopping intent. Local ranking weights combine those results with product details.
Demo scope
The catalog is synthetic. The model can only rank candidates returned by the search index, so an omitted product cannot appear. Reusing a cached query does not create a new model request.
Inspired by the work of dabit3.