• Vũ Hoàng Anh's avatar
    feat(lead-stage): hard pattern detection for price comparison queries · 7659d548
    Vũ Hoàng Anh authored
    - Added hard_patterns.py: detect patterns (cheaper_than, more_expensive_than, similar_to) and extract reference product
    - product_search_engine.py: integrate pattern detection, auto-set price_max/min based on reference price
    - lead_search_tool.py: added user_insight parameter
    - graph.py: pass user_insight to tool, removed product_ids filter (always return full tool result)
    - prompts.py: added family/group intent examples, emphasize product_ids must include all items
    - stylist_engine.py: added occasion and rule_id to matches, save to DB properly
    - Added scripts: regenerate_matches.py and test_insert_one.py
    
    Impact:
    - Query 'rẻ hơn' auto sets price_max = ref_price * 0.95
    - Query 'đắt hơn' auto sets price_min = ref_price * 1.05
    - UI receives complete product list from tool (not truncated by AI)
    7659d548
Name
Last commit
Last update
.agent Loading commit data...
.claude Loading commit data...
.claude copy Loading commit data...
.gemini Loading commit data...
.playwright-mcp Loading commit data...
backend Loading commit data...
flow Loading commit data...
outsource/ds2api Loading commit data...
plan Loading commit data...
public/screenshots Loading commit data...
.codex Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.pre-commit-config.yaml Loading commit data...
CLAUDE.md Loading commit data...
CLAUDE.md.bak Loading commit data...
README.md Loading commit data...
brand-spec.md Loading commit data...
docker-compose.yml Loading commit data...
gen_diag_01.py Loading commit data...
gen_diag_01b.py Loading commit data...
gen_diag_01c.py Loading commit data...
generate_lead_svg.py Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
report_class_guide.md Loading commit data...
report_demo.html Loading commit data...
report_template.css Loading commit data...
test_mermaid.js Loading commit data...
test_mermaid2.js Loading commit data...