Files
nexus/wiki/concepts/家庭库存追踪.md
2026-04-17 22:17:27 +08:00

1.3 KiB
Raw Blame History

id, title, type, tags, aliases, last_updated
id title type tags aliases last_updated
家庭库存追踪 家庭库存追踪 concept
Pantry Tracking
Household Inventory
2026-04-17

Definition

通过 JSON 文件维护家庭食品储藏室和冰箱物品的持续库存,支持文本、照片和收据三种更新方式。

Implementation

// ~/household/inventory.json
{
  "items": [
    {"name": "牛奶", "quantity": 2, "unit": "加仑", "location": "冰箱", "updated": "2026-04-17"},
    {"name": "鸡蛋", "quantity": 12, "unit": "个", "location": "冰箱", "updated": "2026-04-16"}
  ],
  "low_stock_threshold": {"牛奶": 1, "鸡蛋": 6}
}

Update Methods

  • 照片输入:用户发送冰箱/储藏室照片 → 视觉模型提取物品
  • 文本更新"我们没有鸡蛋了" / "买了 2 加仑牛奶"
  • 收据照片:购物小票照片 → 自动更新库存

Query Capabilities

  • "我们有黄油吗?" → 返回位置和数量
  • "什么东西快用完了?" → 列出低于阈值的物品
  • "生成购物清单" → 汇总低库存物品 + 食谱所需食材

Use Cases

  • 避免重复购买
  • 减少食物浪费
  • 简化每周采购
  • OCR:光学字符识别
  • Agentic-AI:主动行动的 AI 代理
  • Airtable:可替代 JSON 的在线数据库选项