refactor(embedding-cache): rename index cache to embedding cache

The cached payload is the indexing pipeline's embeddings (markdown is
chunked then embedded), so "embedding cache" names the expensive output
directly and removes the "index" ambiguity (DB index vs vector index vs
indexing phase). Renames the service, settings, eligibility, eviction
task, metrics, config flags (INDEX_CACHE_* -> EMBEDDING_CACHE_*), object
prefix, and the table (index_cache_embedding_sets -> embedding_cache_sets)
with its constraint and indexes. Migration 161 renamed accordingly.
This commit is contained in:
CREDO23 2026-06-12 17:00:01 +02:00
parent 8cf578d965
commit 91d947ff79
18 changed files with 93 additions and 89 deletions

View file

@ -314,9 +314,9 @@ celery_app.conf.beat_schedule = {
"schedule": crontab(hour="4", minute="0"),
"options": {"expires": 600},
},
# Prune the index cache (chunk+embedding sets) once daily, off-peak.
"evict-index-cache": {
"task": "evict_index_cache",
# Prune the embedding cache (chunk+embedding sets) once daily, off-peak.
"evict-embedding-cache": {
"task": "evict_embedding_cache",
"schedule": crontab(hour="4", minute="30"),
"options": {"expires": 600},
},