Spaces:
Running
Running
Commit History
5 days ago
-
Semantic search fix for VSEARCH (semantic-image-field):
Verified signature1. src/merge.js: crowd-out now uses productLikeTerms() from semantic-terms.js (previously written but never imported) — "kệ xoong"/"máy hút mùi"/"bếp từ" crowd out interiors; "nhà phố"/"biệt thự"/"nội thất"/"bàn ghế" keep them. Products never ring (neon) on semantic queries — only the actual photo the user asked for gets the neon ring, not kitchen accessories. 2. src/avatar-interiors.js: add missing import { expandQueryTerms } — otherwise every avatar-interior text match threw ReferenceError (broken semantic caption matching: "nhà phố" -> "nhà ống", "biệt thự" -> "villa"). 3. src/semantic-terms.js: expand SEMANTIC_SYNONYMS (nha/ong/lien, biet/thu/villa/vuon, phong/khach/ngu/tam, ban/ghe) for better recall. 4. scripts/refresh.mjs: helper script to rebuild bundle and push. Run: node scripts/refresh.mjs (needs HF_TOKEN) to rebuild the static bundle.d5530f7 -
Upload scripts/refresh.mjs
Verified signature377e476