This repository contains a local MVP for a second-hand Nintendo Switch shopping assistant.
- Backend: Python + FastAPI + Pydantic
- Frontend: React + Vite
- Local / remote LLM parsing: Volcengine Ark Responses API or mock fallback
docs/: scope, schema, rules, contracts, validation plandata/: product samples, query samples, expected rankingsbackend/: API, parser, ranking rules, testsfrontend/: single-page MVP UI
The backend reads environment variables from the repository root .env.
Example:
LLM_MODE=ark
LLM_BASE_URL=https://ark.cn-beijing.volces.com/api/v3
LLM_MODEL=doubao-seed-2-0-mini-260215
ARK_API_KEY=...Install:
pip install -r backend/requirements.txtRun:
uvicorn backend.app.main:app --reloadInstall:
cd frontend
npm installRun:
npm run devLLM_MODE=arkuses Volcengine Ark Responses API.- If the remote LLM call fails, the backend falls back to the mock parser so the local MVP remains usable.
- The current ranking logic still uses heuristic scoring over local sample data.