Files
rag-technical-docs-assistant/migrations/versions/0006_voice_model_settings.py
T
amirhosein mazaheri 42400495af feat(backend): integrate document deletion and grounded speech providers
Enable replay-safe document deletion and public deployment model identifiers with the forward voice-model schema revision.

Add GapGPT dialogue and ElevenLabs speech routing, strict extractive grounding, ten-source retrieval and regression coverage.

Validation: 199 targeted provider-free tests passed. The full provider-free run stalled and was interrupted; PostgreSQL acceptance was not run because TEST_DATABASE_URL is unset.
2026-10-20 09:00:37 +03:30

15 lines
524 B
Python

"""Organization speech model selection; applied older revisions remain immutable."""
from alembic import op
revision = '0006_voice_model_settings'
down_revision = '0005_live_owner_chain'
branch_labels = None
depends_on = None
def upgrade(**kwargs):
op.execute("ALTER TABLE organization_settings ADD COLUMN voice_models jsonb NOT NULL DEFAULT '{}'::jsonb CHECK (jsonb_typeof(voice_models)='object')")
def downgrade(**kwargs):
op.execute('ALTER TABLE organization_settings DROP COLUMN voice_models')