MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / count_chunks

Function count_chunks

tools/kb_scraper.py:177–186  ·  view source on GitHub ↗

Return total number of indexed chunks across all files.

()

Source from the content-addressed store, hash-verified

175
176
177def count_chunks() -> int:
178 """Return total number of indexed chunks across all files."""
179 total = 0
180 for chunk_file in (KB_ROOT / "embeddings").glob("*.chunks.json"):
181 try:
182 with open(chunk_file) as f:
183 total += len(json.load(f))
184 except Exception:
185 pass
186 return total

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected