All projects

Retail

Cooklist

AI-powered grocery commerce and shopping assistant platform

Built the LLM shopping assistant and its tool layer, hybrid search, product matcher, two-tower recommender, basket optimizer and their model pipelines behind Cooklist, a grocery shopping assistant that runs on grocers' own websites.

Cooklist: AI-powered grocery commerce and shopping assistant platform

1 / 5
Cooklist: AI-powered grocery commerce and shopping assistant platform

Cooklist: AI-powered grocery commerce and shopping assistant platform

85–90%

Assistant task completion (golden set)

+2–10%

Add-to-cart lift in A/B tests

0

Allergen violations

under 2.5 s

Time to first token (p95)

Stack

LangChain + GPT-4.1-miniDjangoPostgreSQL + pgvectorOpenSearchPyTorch two-tower modelLightGBMOR-Tools CP-SATAmazon SageMakerRemix (React Router 7)React Native (Expo)Snowflake + dbt + AirflowAWS

Overview

Cooklist is an AI-powered grocery commerce platform that turns everyday shopping intentions, like a dairy-free dinner for four for no more than $30, into personalized, retailer-ready baskets. It runs as a shopper app and as an AI shopping assistant embedded in grocers' own ecommerce websites.

The central idea: the AI may propose a product or action; the platform validates it against structured data and business rules; the retailer confirms the final commerce state.

The problem

A shopper often knows the goal (a quick dinner, a budget, an allergen to avoid) but not the exact products or quantities.

  • Intent lost in search: the shopper must turn a goal into search terms, one ingredient at a time.
  • Unavailable items: finding safe alternatives for out-of-stock products interrupts the journey.
  • Budget and cart work: keeping the basket within budget and adding each item to the cart is manual.

My role

I worked at Cooklist as an AI engineer. Cooklist is a funded grocery-technology startup, founded in 2018 by two co-founders. I built two main areas: the AI shopping assistant and its search, and the recommender and basket engine with their data pipelines.

What I built

AI shopping assistant and hybrid search

  • A LangChain tool-calling assistant on GPT-4.1-mini, with Claude 3.5 Haiku as the fallback, in a Django-owned workflow that caps tool iterations per turn and stops at the approval step.
  • An allowlisted tool registry with Pydantic-typed contracts; the assistant can only propose a basket draft, and cart writes are not agent tools.
  • Hybrid retrieval that combines BM25 in OpenSearch with bge-m3 vectors in pgvector, fused with reciprocal rank fusion and reranked with bge-reranker-v2-m3.

Grocery ontology, recommender and basket optimization

  • A grocery ontology linking foods, recipes, products and retailer SKUs, a staged product matcher, and context-aware substitutions with allergen exclusions.
  • A PyTorch two-tower retrieval model on SageMaker with a LightGBM ranker on top, refreshed nightly behind an offline gate and A/B tested in GrowthBook.
  • An OR-Tools CP-SAT basket model with hard allergen, store, quantity and budget constraints; an infeasible request returns the closest alternatives instead of relaxing the budget.

Results

  • Assistant task completion: 85–90% on the golden scenario set and 70–85% in production.
  • Latency: time to first token under 2.5 s at p95; a full basket answer in 4–8 s at p50.
  • Basket drafts: shoppers approved 40–70% of the basket drafts.
  • A/B tests: add-to-cart +2–10% and basket size +3–10% (relative lift).
  • Product matching: precision of 98–99% or higher for auto-accepted matches, and catalog coverage of 95% or more of active SKUs.
  • Substitutions and allergens: 60–80% of substitutions accepted, and 0 allergen violations.
  • Recommender: recall@k of 0.5–0.8 at the candidate-set size, NDCG@10 of 0.2–0.4, and +5–15% over the ALS baseline.
  • LLM cost: $0.02–0.07 per conversation.

Tech stack

LayerTechnologies
Frontend and mobileRemix (React Router 7), React Native (Expo), Vite, Tailwind CSS, TanStack Query, Zod
BackendDjango, Django REST Framework, Strawberry GraphQL, Django Channels, Celery, RabbitMQ, Pydantic
AI and MLLangChain, GPT-4.1-mini, Claude 3.5 Haiku, bge-m3, bge-reranker-v2-m3, PyTorch two-tower, LightGBM, OR-Tools CP-SAT, LangSmith
DataPostgreSQL + pgvector, OpenSearch, Redis, Snowflake, Amazon S3
Data engineeringApache Airflow (Amazon MWAA), dbt, Evidently, GrowthBook
InfrastructureAmazon SageMaker, ECS Fargate, CloudFront, Terraform, CircleCI, Datadog

Related case studies