PARAM query AS STRING

categories = FIND "Categories.csv"
result = SEARCH PRODUCTS query, 5
enhanced = LLM "Classify '" + query + "' into categories: " + categories + ". Similar products: " + result + ". Return JSON {category_id, category_name, confidence, attributes: {brand, type}}"

RETURN enhanced
