feat(prompt-quality): 质量评价与对比模块 API、脚本与 Vue 页面

Made-with: Cursor
This commit is contained in:
renjianbo
2026-04-06 19:02:21 +08:00
parent daa34582e9
commit 5dad35de82
28 changed files with 6606 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
-- 提示词结构化质量评价表SQLite 与 MySQL 通用写法MySQL 可将 evaluation_json 改为 JSON 类型)
CREATE TABLE IF NOT EXISTS prompt_quality_record (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id INTEGER NOT NULL,
batch_id VARCHAR(36) NOT NULL,
prompt_index INTEGER NOT NULL DEFAULT 0,
optimized_prompt TEXT NOT NULL,
evaluation_json TEXT NOT NULL,
batch_summary TEXT,
incremental_hints_json TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX IF NOT EXISTS ix_pqr_user_id ON prompt_quality_record (user_id);
CREATE INDEX IF NOT EXISTS ix_pqr_batch_id ON prompt_quality_record (batch_id);
CREATE INDEX IF NOT EXISTS ix_pqr_created_at ON prompt_quality_record (created_at);