Spaces:
Sleeping

benny4982 Claude Opus 4.6 commited on
Commit
8a2dc22
·
1 Parent(s): 037b655

Pre-build embedding cache for fast startup, fix voice recording stop bug

Browse files

Cache chunks+embeddings as index_cache.json (~38 MB, Git LFS) so container
startup loads ChromaDB in ~3s instead of calling OpenAI embeddings API (~30-60s).
Cache is generated by default on every index build.

Fix walkthrough voice input not stopping: add 15s auto-timeout, show stop
icon on mic button while listening, and centralize cleanup in vgStopListening().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

7 files changed +126 -19
Files changed (7)
.gitattributes+1
.gitignore+4-1
data/processed/stalker/index_cache.jsonAdded+3
frontend/index.html+27-10
scripts/build_index.py+40-5
src/api.py+9-3
src/rag/vectorstore.py+42