From 42cf1876f183841f160a1fa42d64980822495b19 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 19 Jun 2026 08:49:11 +0000 Subject: [PATCH] Replace duplicate Vectors metric with embedding dimension The sidebar showed a 'Vectors' count that was always identical to 'Chunks' (each chunk maps 1:1 to one embedding vector), so the status dict populated "vectors" from total_chunks. Drop the redundant key and surface the embedding dimension instead, which is a genuinely distinct, already-available index property. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_0146322CMjUFgK5MPofG4vLd --- coderag/api.py | 1 - coderag/surfaces/templates/_sidebar.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/coderag/api.py b/coderag/api.py index c4705dd..f306da3 100644 --- a/coderag/api.py +++ b/coderag/api.py @@ -227,7 +227,6 @@ def status(self) -> dict: "watched_dir": str(self.config.watched_dir), "total_files": stats.total_files, "total_chunks": stats.total_chunks, - "vectors": stats.total_chunks, } def close(self) -> None: diff --git a/coderag/surfaces/templates/_sidebar.html b/coderag/surfaces/templates/_sidebar.html index 02641f6..2a8b12c 100644 --- a/coderag/surfaces/templates/_sidebar.html +++ b/coderag/surfaces/templates/_sidebar.html @@ -3,7 +3,7 @@

Index

Files
{{ status.total_files }}
Chunks
{{ status.total_chunks }}
-
Vectors
{{ status.vectors }}
+
Dim
{{ status.embedding_dim }}
Model{{ status.model }}