Skip to content

Add optional chunk vector controls and Meilisearch cleanup - #6

Draft
axAilotl wants to merge 2 commits into
devfrom
meli-update
Draft

Add optional chunk vector controls and Meilisearch cleanup#6
axAilotl wants to merge 2 commits into
devfrom
meli-update

Conversation

@axAilotl

@axAilotl axAilotl commented Apr 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a real vectorSearch.enableChunks toggle for optional card_chunks usage
  • make search/indexing/embedder scripts honor that toggle and support clean chunk-only cleanup
  • update Meilisearch docs/compose notes to reflect the current setup

Included

  • backend cleanup path when chunk vectors are disabled
  • cards-only vector search support when chunks are off
  • chunk-aware maintenance script updates
  • README and Docker README updates
  • compose updates for the current Meilisearch runtime

Not Included

  • no local config/runtime files such as config.json, config.js, .env, DB files, or snapshot/data directories

Verification

  • node --check passed for changed backend/services/scripts files
  • frontend build was previously validated in the main workspace before the clean branch was cut

Notes

  • branch was prepared from a clean worktree to avoid unrelated local changes
  • draft PR intentionally left open for further testing before merge

axAilotl and others added 2 commits February 10, 2026 18:17
Add queue-driven background services that run after sync completes:

- PngOptimizationService: Resizes oversized PNGs (>4MP) with sharp,
  preserves tEXt metadata chunks (chara key), skips RisuAI cards.
  Triggered post-sync for Chub, CT, and Wyvern sources.

- VectorBackfillService: Processes vector embedding queue via
  child process spawning the ETL script.

Both services follow the same pattern: scheduleX() with debounced
setTimeout, startX() reads from a DB queue, spawns a script, and
supports rerun-on-completion if new work arrived during processing.

Schema additions: png_optimization_queue table with auto-enqueue
triggers (filtered to exclude risuai), vector_index_queue table
with triggers for all card mutations.

New scripts: optimize-pngs.js (--all flag for backlog),
ensure-vector-embedders.js.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant