Auto-sync: 2026-04-17 22:17
This commit is contained in:
47
wiki/concepts/家庭库存追踪.md
Normal file
47
wiki/concepts/家庭库存追踪.md
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
id: 家庭库存追踪
|
||||
title: "家庭库存追踪"
|
||||
type: concept
|
||||
tags: []
|
||||
aliases:
|
||||
- Pantry Tracking
|
||||
- Household Inventory
|
||||
last_updated: 2026-04-17
|
||||
---
|
||||
|
||||
## Definition
|
||||
通过 JSON 文件维护家庭食品储藏室和冰箱物品的持续库存,支持文本、照片和收据三种更新方式。
|
||||
|
||||
## Implementation
|
||||
```json
|
||||
// ~/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
|
||||
- 避免重复购买
|
||||
- 减少食物浪费
|
||||
- 简化每周采购
|
||||
|
||||
## Related Concepts
|
||||
- [[OCR]]:光学字符识别
|
||||
- [[Agentic-AI]]:主动行动的 AI 代理
|
||||
|
||||
## Related Entities
|
||||
- [[Airtable]]:可替代 JSON 的在线数据库选项
|
||||
Reference in New Issue
Block a user