- Add comprehensive documentation in botbook/ with 12 chapters - Add botapp/ Tauri desktop application - Add botdevice/ IoT device support - Add botlib/ shared library crate - Add botmodels/ Python ML models service - Add botplugin/ browser extension - Add botserver/ reorganized server code - Add bottemplates/ bot templates - Add bottest/ integration tests - Add botui/ web UI server - Add CI/CD workflows in .forgejo/workflows/ - Add AGENTS.md and PROD.md documentation - Add dependency management scripts (DEPENDENCIES.sh/ps1) - Remove legacy src/ structure and migrations - Clean up temporary and backup files
13 lines
469 B
QBasic
13 lines
469 B
QBasic
PARAM query AS STRING
|
|
|
|
categories = FIND "categories"
|
|
similar = SEARCH PRODUCTS query, 5
|
|
result = LLM "Classify '" + query + "' into: " + categories + ". Similar: " + similar + ". Return JSON with category_id, name, confidence, brand, type"
|
|
|
|
cached = FIND "products" WITH "name LIKE '%" + query + "%'"
|
|
IF cached THEN
|
|
RETURN cached
|
|
END IF
|
|
|
|
SAVE "products" WITH name AS query, category AS result.name, brand AS result.brand, external_metadata AS result
|
|
RETURN result
|