• Vũ Hoàng Anh's avatar
    feat(lead-stage): hard pattern detection for price comparison queries · 895037a4
    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)
    895037a4
Name
Last commit
Last update
..
diagram_agent Loading commit data...
feedback_agent Loading commit data...
image_search_agent Loading commit data...
lead_stage_agent Loading commit data...
nodes Loading commit data...
prompt_module Loading commit data...
reaction_agent Loading commit data...
report_agent Loading commit data...
simulate_agent Loading commit data...
sku_search_agent Loading commit data...
sql_agent Loading commit data...
store_search_agent Loading commit data...
tool_prompts Loading commit data...
tools Loading commit data...
ultra_descriptions_agent Loading commit data...
__init__.py Loading commit data...
controller.py Loading commit data...
controller_helpers.py Loading commit data...
graph.py Loading commit data...
helper.py Loading commit data...
mock_controller.py Loading commit data...
mock_graph.py Loading commit data...
models.py Loading commit data...
persona_generator.py Loading commit data...
prompt_utils.py Loading commit data...
streaming_callback.py Loading commit data...
structured_models.py Loading commit data...
system_prompt.txt Loading commit data...
text_to_sql.py Loading commit data...