Files
assist/.kiro/steering/product.md

26 lines
1.6 KiB
Markdown

# Product Overview
TSP Assistant (TSP智能助手) is an AI-powered customer service and work order management system built for TSP (Telematics Service Provider) vehicle service providers.
## What It Does
- Intelligent dialogue with customers via WebSocket real-time chat and Feishu (Lark) bot integration
- Work order lifecycle management with AI-generated resolution suggestions
- Knowledge base with semantic search (TF-IDF + cosine similarity, optional local embedding model)
- Vehicle data querying by VIN
- Analytics dashboard with alerts, performance monitoring, and reporting
- Multi-tenant architecture — data is isolated by `tenant_id` across all core tables
- Feishu multi-dimensional table (多维表格) bidirectional sync for work orders
## Key Domain Concepts
- **Work Order (工单)**: A support ticket tied to a vehicle issue. Can be dispatched to module owners, tracked through statuses, and enriched with AI suggestions.
- **Knowledge Entry (知识库条目)**: Q&A pairs used for retrieval-augmented responses. Verified entries have higher confidence.
- **Tenant (租户)**: Logical isolation unit (e.g., a market or region). All major entities carry a `tenant_id`.
- **Agent**: A ReAct-style LLM agent with registered tools (knowledge search, vehicle query, analytics, Feishu messaging).
- **Chat Session (对话会话)**: Groups multi-turn conversations; tracks source (websocket, API, feishu_bot).
## Primary Language
The codebase, comments, log messages, and UI are predominantly in **Chinese (Simplified)**. Variable names and code structure follow English conventions.