Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Iris

Never run out of what's booked.

Iris demo: shelf photo, run-out forecast, supplier suggestion, reject with feedback, approve

▶ Watch the 90-second demo with captions (MP4): live Nebius models on a staged shelf photo, then forecast, supplier search, reject with feedback, and approve (simulated order, idempotent).

Salons and barbershops know their demand a week ahead: it's in the booking book. Iris turns next week's appointments and a quick stock count (a photo or a pasted note) into a supplier basket the owner can approve. It shows which booking will run short, why the product is needed, and which supplier can deliver in time. If the owner rejects a proposal, Iris searches again using their feedback. Approval places a simulated order and records the incoming stock.

Built at the Retail AI & Agents Hackathon (Innovators Guild at Fresha, London, 24 Nov 2026), Retail AI track (Nebius / NVIDIA).

Run it

Run the React UI

./scripts/dev.sh                                              # macOS / Linux
powershell -ExecutionPolicy Bypass -File scripts/dev.ps1      # Windows

One command starts the FastAPI server (server.py, http://localhost:8000) and the React app (http://localhost:5173), creating .venv and installing web/ dependencies on first run. Stopping the web server stops the API. Pass --streamlit (Windows: -Streamlit) to run the Streamlit fallback instead on http://localhost:8501. Ports can be overridden with API_PORT, WEB_PORT, ST_PORT.

Setup and Streamlit

python3.14 -m venv .venv && .venv/bin/pip install -r requirements.txt
cp .env.example .env            # optional: Nebius + Tavily keys; without them Iris uses labelled fallbacks
.venv/bin/streamlit run app.py  # http://localhost:8501

Checks: python scripts/check.py (unit tests) and python scripts/acceptance.py (17 headless end-to-end checks against the app).

Demo path

  1. Stock count: upload demo/stocktake.png (or paste a note). Iris reads it, the owner confirms the rows, and the forecast moves.
  2. Next 7 days: Northline Matte Clay runs out Fri 11:00, at booking BK-030 (a textured crop). The chart shows projected stock against booked usage.
  3. Supplier basket: Iris proposes 2 × BarberHub (£26.50, arrives Wed). The table shows the other offers it considered: a cheaper-per-ml bulk seller that misses the Friday bookings, and listings kept as leads (wrong size, no delivery date).
  4. Reject with feedback ("not BarberHub..."): revision 2 switches to ShearCo (£37.95). No order is placed.
  5. Approve: exactly one simulated order. The stock shows as incoming and the bookings at risk are covered. Approving again still leaves one order.

How it works

flowchart LR
    B[Bookings x service recipes] --> F[7-day time-ordered stock projection]
    P[Photo] -->|Nebius VLM| R[Review rows]
    T[Text] -->|Nebius LLM| R
    R -->|owner confirms| F
    F -->|shortage + need-by| S[Sourcing agent: typed read-only search_suppliers tool]
    S --> K[Proposal: offer, packs, ETA, evidence, reason]
    K -->|reject + feedback| S
    K -->|approve latest revision| O[Simulated order + pending inbound]
    O --> F
Loading
Module What it does
server.py FastAPI JSON API over iris.* (view-model State); contract in contracts/api.md
web/ React UI (Vite + React + Tailwind, Recharts run-out chart) that calls server.py
app.py Streamlit fallback flow; forecast and synthetic bookings (until iris/calc.py lands)
iris/intake.py, iris/llm.py Explicit router (photo → VLM, text → LLM), shared extraction schema, validation and SKU matching in code. Nothing changes stock until the owner confirms
iris/sourcing.py Typed read-only search_suppliers tool; fixture and Tavily adapters; hard filters (brand, variant, size, evidence) and deterministic ranking in code
iris/agent.py Builds search requests, turns ranked results into proposals, reruns with exclusions and feedback constraints on rejection. Cannot place orders
iris/orders.py Proposal revisions and approval. One order per approved revision (idempotent); pending stock is kept separate from on-hand

Every number (demand, shortage, packs, cost, ETA vs need-by) is computed in code. AI is used for reading stock, planning the search query and phrasing the reason, and each falls back to a deterministic version.

Live vs simulated

Component Status
Bookings, recipes, stock Synthetic barbershop fixture (no real customer data)
Photo / text stock intake Live via Nebius Token Factory: text nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B, vision google/gemma-3-27b-it, set by IRIS_TEXT_MODEL / IRIS_VISION_MODEL in .env (plus NEBIUS_API_KEY). Without them a labelled replay / rule parser runs (the UI says which ran)
Supplier offers Labelled fixture by default (repeatable demo); sidebar toggle enables live Tavily discovery. Live listings without readable price, pack size or delivery stay leads
Orders, payments Simulated local order only. No real purchasing

NVIDIA blueprints used

Reference copies (Apache-2.0, unmodified) are in blueprints/, with pinned commits in blueprints/README.md. No upstream code is imported; Iris reimplements these patterns:

Blueprint (commit) What Iris uses
Retail Shopping Assistant (c20044b) The search_catalog_tool pattern, as one typed read-only search_suppliers tool: soft query, hard constraints in code, deterministic ranking, and evidence returned to the agent
Retail Catalog Enrichment (debc251) Visual product analysis pattern: structured product, variant, size and count from a stock photo, validated against the SKU catalog
Multi-Agent Intelligent Warehouse (a6404ed) Forecasting and replenishment kept as separate responsibilities; time-ordered stock projection
Retail Agentic Commerce (83c5f22) Basket and order lifecycle under merchant control. ACP/UCP checkout is future work

What's next

Real Fresha booking integration, supplier checkout via agentic commerce protocols, a received-stock workflow, and more presets (tattoo studio, nail salon) using the same schema.

Team

Abhi · Om · CriticalRegion · Tudor

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages