mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-22 00:31:46 +00:00
This change addresses issue #10991 where users can configure incorrect embedding dimensions, causing Qdrant to reject vector upserts with dimension mismatches. Changes: - Updated IEmbedder interface to include optional detectedDimension in validation result - All 8 embedders now return the detected dimension from their test embedding during validation - Updated CodeIndexServiceFactory.createVectorStore() to accept and prioritize auto-detected dimension over profile-based and manual configuration - Updated CodeIndexManager._recreateServices() to pass detected dimension from validation to vector store creation - Added comprehensive tests for the new functionality Priority order for dimension selection: 1. Auto-detected from test embedding (most reliable) 2. Profile-based from getModelDimension() 3. Manual configuration from modelDimension setting Fixes #10991 |
||
|---|---|---|
| .. | ||
| cache.ts | ||
| config.ts | ||
| embedder.ts | ||
| file-processor.ts | ||
| index.ts | ||
| manager.ts | ||
| vector-store.ts | ||