Store Layout & Arrangement Map
Products grouped into zones based on KNN affinity. Items in the same zone should be placed near each other on shelves or aisles.
Computing arrangement...
How strongly each zone relates to every other zone. Darker = stronger affinity.
Physical Store
Place each zone's products on the same shelf or adjacent shelves within an aisle. Zones with high mutual affinity should be on neighbouring aisles.
E-commerce Website
Use the /api/arrangement endpoint to group products into
sections on category pages. Show related products in "Frequently bought together" carousels.
POS Integration
Call /api/related/<product_id> when a cashier scans an item
to prompt upsell suggestions, or display them on the customer-facing screen.