Skip to content

Commit aa75608

Browse files
Neverdecelclaude
andauthored
Replace duplicate Vectors metric with embedding dimension (#58)
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. Claude-Session: https://claude.ai/code/session_0146322CMjUFgK5MPofG4vLd Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8ba6e56 commit aa75608

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

coderag/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ def status(self) -> dict:
227227
"watched_dir": str(self.config.watched_dir),
228228
"total_files": stats.total_files,
229229
"total_chunks": stats.total_chunks,
230-
"vectors": stats.total_chunks,
231230
}
232231

233232
def close(self) -> None:

coderag/surfaces/templates/_sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h2>Index</h2>
33
<dl class="metrics">
44
<div><dt>Files</dt><dd>{{ status.total_files }}</dd></div>
55
<div><dt>Chunks</dt><dd>{{ status.total_chunks }}</dd></div>
6-
<div><dt>Vectors</dt><dd>{{ status.vectors }}</dd></div>
6+
<div><dt>Dim</dt><dd>{{ status.embedding_dim }}</dd></div>
77
</dl>
88
<div class="meta">
99
<div class="meta-row"><span class="k">Model</span><span class="v">{{ status.model }}</span></div>

0 commit comments

Comments
 (0)