fix: switch embedding dimension from 1536 to 2560 for qwen-embedding-4b
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 5s

This commit is contained in:
Antigravity
2026-05-12 09:07:55 +00:00
parent feaeb075ce
commit e09ea3a145
10 changed files with 105 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
/**
* Embedding Service
* Generates vector embeddings for semantic search and similarity analysis.
* Stores embeddings as native pgvector(1536) in PostgreSQL.
* Stores embeddings as native pgvector(2560) in PostgreSQL.
*/
import { getAIProvider } from '../factory'
@@ -14,7 +14,7 @@ export interface EmbeddingResult {
}
export class EmbeddingService {
private readonly EMBEDDING_DIMENSION = 1536
private readonly EMBEDDING_DIMENSION = 2560
async generateEmbedding(text: string): Promise<EmbeddingResult> {
if (!text || text.trim().length === 0) {