feat(qa): support synthesis-wide chat context (#63)

This commit is contained in:
2026-11-26 14:40:03 +01:00
parent d42cd00315
commit 0a19d1c617
14 changed files with 411 additions and 38 deletions

View File

@ -0,0 +1,6 @@
-- Preserve general-chat turns on rollback. NOT VALID applies the old rule to
-- new writes without deleting or rewriting existing empty passages.
ALTER TABLE summary_qa_turns
ALTER COLUMN passage DROP DEFAULT,
DROP CONSTRAINT summary_qa_turns_passage_check,
ADD CONSTRAINT summary_qa_turns_passage_check CHECK (char_length(passage) BETWEEN 1 AND 8000) NOT VALID;

View File

@ -0,0 +1,6 @@
-- Empty means a general question about the full synthesis. Keep NOT NULL and
-- every historical passage; relax only the lower length bound.
ALTER TABLE summary_qa_turns
ALTER COLUMN passage SET DEFAULT '',
DROP CONSTRAINT summary_qa_turns_passage_check,
ADD CONSTRAINT summary_qa_turns_passage_check CHECK (char_length(passage) BETWEEN 0 AND 8000);