- Move from OpenAI to Mistral Embeddings
- Move embedding model settings from tenant to catalog - BUG: error processing configuration for chunking patterns in HTML_PROCESSOR - Removed eveai_chat from docker-files and nginx configuration, as it is now obsolete - BUG: error in Library Operations when creating a new default RAG library - BUG: Added public type in migration scripts - Removed SocketIO from all code and requirements.txt
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
"""Move embedding model settings to Catalog
|
||||
|
||||
Revision ID: b02d9ad000f4
|
||||
Revises: f0ab991a6411
|
||||
Create Date: 2025-02-21 22:11:10.313148
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'b02d9ad000f4'
|
||||
down_revision = 'f0ab991a6411'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('tenant', schema=None) as batch_op:
|
||||
batch_op.drop_column('embedding_model')
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('tenant', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('embedding_model', sa.VARCHAR(length=50), autoincrement=False, nullable=True))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
@@ -71,7 +71,7 @@ target_db = current_app.extensions['migrate'].db
|
||||
def get_public_table_names():
|
||||
# TODO: This function should include the necessary functionality to automatically retrieve table names
|
||||
return ['role', 'roles_users', 'tenant', 'user', 'tenant_domain','license_tier', 'license', 'license_usage',
|
||||
'business_event_log']
|
||||
'business_event_log', 'tenant_project']
|
||||
|
||||
|
||||
PUBLIC_TABLES = get_public_table_names()
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
"""Link embedding models to Catalog
|
||||
|
||||
Revision ID: 2b04e961eee4
|
||||
Revises: e58835fadd96
|
||||
Create Date: 2025-02-21 22:06:43.527013
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
import pgvector
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '2b04e961eee4'
|
||||
down_revision = 'e58835fadd96'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('catalog', sa.Column('embedding_model', sa.String(length=50), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('catalog', 'embedding_model')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user