Add production condition retrieval smoke test

This commit is contained in:
2026-08-11 14:58:28 +07:00
parent 59e6ad2d0d
commit 7ebbe1f309
38 changed files with 3752 additions and 121 deletions
@@ -0,0 +1,13 @@
CREATE TABLE IF NOT EXISTS rag_answer_feedback (
feedback_id uuid PRIMARY KEY,
trace_id uuid NOT NULL REFERENCES rag_retrieval_trace(trace_id) ON DELETE CASCADE,
conversation_id varchar(128),
rating varchar(16) NOT NULL CHECK (rating IN ('helpful', 'not_helpful')),
comment text CHECK (comment IS NULL OR char_length(comment) <= 2000),
created_at timestamptz NOT NULL DEFAULT now(),
updated_at timestamptz NOT NULL DEFAULT now(),
UNIQUE (trace_id)
);
CREATE INDEX IF NOT EXISTS rag_answer_feedback_created_at_idx
ON rag_answer_feedback (created_at DESC);