feat: 임베딩 모델 변경 — nomic-embed-text → bge-m3 (1024차원, 다국어)
- config.yaml: embedding model → bge-m3 - document.py: Vector(768) → Vector(1024) - embed_worker.py: 모델 버전 업데이트 - migration 011: 벡터 컬럼 재생성 (기존 임베딩 초기화) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
7
migrations/011_embedding_1024.sql
Normal file
7
migrations/011_embedding_1024.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- 벡터 차원 변경: 768 → 1024 (nomic-embed-text → bge-m3)
|
||||
-- 기존 임베딩 데이터 초기화 (재생성 필요)
|
||||
ALTER TABLE documents DROP COLUMN IF EXISTS embedding;
|
||||
ALTER TABLE documents ADD COLUMN embedding vector(1024);
|
||||
|
||||
-- 기존 임베딩 메타 초기화
|
||||
UPDATE documents SET embedded_at = NULL, embed_model_version = NULL;
|
||||
Reference in New Issue
Block a user