Reltio情报员
Groq llama-3.3-70b-多功能+相关MDM API+完整关系遍历
建筑
Browser (index.html)
│ POST /chat (no CORS issues — same origin)
▼
FastAPI Backend (main.py) ←─── proxies all API calls
├── Groq API (llama-3.3-70b-versatile)
└── Reltio API (auth + entity + relationship queries)快速开始
# Python 3.10+ required
chmod +x start.sh
./start.sh
# Then open http://localhost:8000或手动:
cd backend
pip install -r requirements.txt
uvicorn main:app --reload --port 8000
# Open frontend/index.html or go to http://localhost:800015个带关系遍历的MCP工具
| 工具 | 关系链 |
|---|---|
sales_growth_weekly | 订单_奥利斯特→ 订单_产品_列表→ 产品\_ olist |
funnel_analysis | 事件_点击流→ GCI → 客户列表→ 订单_奥利斯特 |
repeat_purchase_by_city | 客户列表→ 客户_订单_列表→ 订单_奥利斯特 |
customer_segmentation | GCI→ 客户列表→ 客户_订单_列表 |
time_to_purchase | 事件_点击流→ GCI → 客户列表→ 订单_奥利斯特 |
win_back_list | 事件_点击流→ GCI → 客户列表(订单检查) |
market_basket | 订单_奥利斯特→ 订单_产品_列表×2(配对共现) |
delivery_performance | 客户列表→ 客户_订单_列表→ 订单_奥利斯特 |
cohort_retention | GCI→ 客户列表→ 客户_订单_列表 |
demand_vs_sales | 订单\_ instacart→ 订单_产品_安装车→ 产品\_ instacart |
avg_order_value_by_city | 客户列表→ 订单_奥利斯特→ 订单_产品_列表→ 产品\_ olist |
aggregate_entities | 具有分组+时间过滤器的单个实体 |
search_entities | 单实体类型搜索 |
get_entity_by_id | 获取一个实体 |
get_entity_relationships | 原始关系获取 |
支持的实体类型
customers_olist--olist客户简介orders_olist--带有时间戳的olist订单products_olist--olist产品目录orders_instacart--Instacart订单products_instacart--Instacart产品目录events_clickstream--行为事件流Global_Customer_Identifier--跨源身份记录
19个支持的分析场景
- 产品销售环比增长(过去8周)
- 转换漏斗:视图→ 加入购物车→ 购买
- 按城市分列的重复购买率(前50名产品)
- 各州独特客户排名前20的产品,MTD
- 客户细分(新/重复/忠诚)×按类别划分的收入
- 按城市划分的从首次观看到购买的平均时间
- 需求(浏览量)与销售(订单)环比持平
- 按队列(第一个购买月)和城市划分的客户保留率
- 30天内最常回购的产品
- 按城市划分的平均订单价值,季度环比
- 赢回列表:高浏览,零购买(60天)
- 市场篮子:回头客的顶级产品组合
- 优惠券使用对购物篮大小和再订购率的影响
- 按城市和类别分列的退货/退款率
- 按城市划分的交货延迟率与退货相关性
- 推动新客户销售的主要渠道(过去30天)
- 收入流失:每周取消+退款
- 最近产品视图的客户销售额份额(7天)
- 类别价格敏感性(价格下降导致销售额上升)
