Skip to content

About

Mini recommender system mimicking Amazon COSMO pipeline

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

COSMO Mimic Mini RecSys

Runnable, small-scale COSMO-style pipeline demo.

This project shows end-to-end flow from behavior data to recommendation using an LLM generation stage, filtering, critic scoring, KG construction, and serving.

For full technical design, workflow, tradeoffs, and COSMO-vs-demo gap, see ARCHITECTURE.md.

Quick Start

uv run python main.py demo --query "shoes for pregnant women" --top 5 --output artifacts

This executes the full pipeline and writes outputs to artifacts.

Core Commands

Build artifacts only:

uv run python main.py build --output artifacts

Serve recommendations from built artifacts:

uv run python main.py recommend "how to decorate a home" --top 3 --output artifacts

JSON output:

uv run python main.py demo --query "shoes for pregnant women" --top 2 --output artifacts --json

LLM Modes

  • scripted (default, deterministic)
  • azure-entra (Azure OpenAI with Microsoft Entra ID)
  • openai (OpenAI-compatible API key flow)

Azure OpenAI (Entra ID)

  1. Copy .env.template to .env and fill in values.
  2. Run az login.
  3. Run:
uv run python main.py demo --llm azure-entra --query "shoes for pregnant women" --top 5 --output artifacts

OpenAI-compatible API key example

$env:OPENAI_API_KEY="..."
uv run python main.py demo --llm openai --query "shoes for pregnant women" --top 5 --output artifacts

All credentials and endpoints can be set in .env or your environment. See .env.template.

Main Artifacts

For stage-by-stage behavior, tradeoffs, and detailed examples, see ARCHITECTURE.md.

About

Mini recommender system mimicking Amazon COSMO pipeline

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages