feat(qa): support synthesis-wide chat context (#63)
This commit is contained in:
@ -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;
|
||||
@ -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);
|
||||
Reference in New Issue
Block a user