DDevArchive
Đăng nhập

Prompt 07 · Technical Architecture Specifications Prompting

Kỹ thuật prompt sinh Technical Architecture Spec (07-technical-specifications.md): Định hình System Topology, Architecture Decision Records (ADR-###), Caching Strategy và DB Schema Constraints.

Mẫu Architecture Decision Record (ADR)

// File: docs/07-technical-specifications.md
# ADR-001: Sử dụng PostgreSQL với pgvector làm Database chính
- Context: Cần lưu trữ dữ liệu giao dịch chuẩn ACID đồng thời hỗ trợ RAG Vector Search.
- Decision: Dùng PostgreSQL 16 + Extension pgvector.
- Consequences: Tiết kiệm chi phí vận hành so với việc duy trì 2 DB riêng biệt (SQL + Pinecone).