feat(prompt-quality): 质量评价与对比模块 API、脚本与 Vue 页面
Made-with: Cursor
This commit is contained in:
15
scripts/prompt_quality_schema.sql
Normal file
15
scripts/prompt_quality_schema.sql
Normal 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);
|
||||
Reference in New Issue
Block a user