Reading the repo
Opening the box…
Reading the repo
Opening the box…
Assembly instructions
Demo - H&M Online Clothing Store
Saved setup from 8 h ago
Will it work on macOS?
The maintainers included start.sh. Run it from the cloned folder after reading it.
bash start.sh
Then run bash setup.sh. 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: xcode-select --install
git clone https://github.com/lancedb/ecommerce.git cd ecommerce
Python 3.x (no version pinned)
brew install python
python -m venv .venv source .venv/bin/activate 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 macOS yet.
GitManual AI Agent reads the 2 key files and writes a step-by-step guide for macOS. Once written, it's saved for everyone.