feat: Enhance embedding generation to track current index path and improve metadata retrieval

This commit is contained in:
catlog22
2026-01-02 19:18:26 +08:00
parent 0b6e9db8e4
commit c268b531aa
6 changed files with 175 additions and 136 deletions

View File

@@ -693,8 +693,10 @@ class HybridSearchEngine:
vectors_meta_path, chunk_ids, score_map, category
)
except Exception as e:
self.logger.debug(
"Centralized metadata lookup failed, falling back: %s", e
self.logger.warning(
"Centralized metadata lookup failed, falling back to legacy traversal: %s. "
"Consider regenerating embeddings with: codexlens embeddings-generate --centralized",
e
)
# Fallback: traverse _index.db files (legacy path)