Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Windows
Demo - H&M Online Clothing Store
Saved setup from 8 h ago
Will it work on Windows?
The maintainers included start.sh. Run it from the cloned folder after reading it.
bash start.sh
Then run powershell -ExecutionPolicy Bypass -File .\setup.ps1. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: winget install Git.Git
git clone https://github.com/lancedb/ecommerce.git cd ecommerce
Python 3.x (no version pinned)
winget install Python.Python.3.12
python -m venv .venv .venv\Scripts\Activate.ps1 pip install -r requirements.txt
uvicorn app:app --reload
uvicorn app:app --reload --host 0.0.0.0 --port 8000
http://localhost:8000/static/index.htmlThe application will automatically create an empty table when it starts. To populate it with fashion data:
import pandas as pd
import lancedb
from sentence_transformers import SentenceTransformer
# Connect to the database
db = lancedb.connect("./data")
table = db.open_table("h&m-mini")
# Load your fashion data
data = pd.read_csv("your_fashion_data.csv")
# Generate embeddings for text fields (e.g., product descriptions)
encoder = SentenceTransformer("clip-ViT-B-32")
data['vector'] = data['detail_desc'].apply(lambda x: encoder.encode(x).tolist())
# Insert data into the table
table.add(data)
image_url: URL to product imageprod_name: Product namedetail_desc: Product descriptionproduct_type_name: Type of productindex_group_name: Product category groupprice: Product pricearticle_id: Unique article identifieravailable: Availability statuscolor: Product colorsize: Product sizevector: 512-dimensional embedding vectorNo reports for Windows yet.
GitManual AI Agent reads the 2 key files and writes a step-by-step guide for Windows. Once written, it's saved for everyone.