[GH-ISSUE #2900] [Issue]: Add button to delete all existing embedded vectors #1481

Closed
opened 2026-10-21 05:36:27 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jun 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2900

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Users can disable future vector creation with the No Vector option, but existing embedded vectors remain stored. This causes large lorebook exports and unnecessary vector data in external workflows.

Expected behavior

The Semantic Search (Embedding) panel should include a button to permanently delete all existing vectors for the current lorebook instance, cleaning stored data without affecting core app functionality.

Actual behavior

Disabling No Vector only stops new vectors from being created. Previously generated embedded vectors remain, leading to bloated lorebook files and oversized exports.

Steps to reproduce

  1. Enable vectorization and generate embedded vectors for a lorebook.
  2. Disable vectorization using the No Vector option.
  3. Export the lorebook or inspect the stored data; existing vectors are still present.

Environment

  • Marinara Engine version: Not provided in the Discord thread.
  • Install type: Not provided in the Discord thread.
  • OS + version: Not provided in the Discord thread.
  • Browser or app shell: Not provided in the Discord thread.

Logs, screenshots, or video

Not provided in the Discord thread.

Additional context

Requested UI change: add a 'Delete All Existing Vectors' button in the Semantic Search (Embedding) panel on the Lorebook Overview page. Marinara also noted the No Vector toggle is off by default and should be retitled to 'Vectors' and remain off by default.

Discord thread: [Feature Request] Delete all existing embedded vectors
Thread link: https://discord.com/channels/1417099416812392641/1519712122257412157
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-06-25T14:33:24.832Z] AgentX: **What problem does this solve?**
When a user disables vectorization using the "No Vector" option, the system merely prevents new vectors from being created but fails to delete previously generated embedded vectors. This leads to bloated lorebook files (e.g., when exporting in ME format) that include massive amounts of unnecessary vector data. These oversized files exceed context window limits and are inefficient for external processes such as debugging, advanced querying, or transferring the lorebook to other AI analysis tools.

**Proposed solution**
Add a dedicated button labeled "Delete All Existing Vectors" within the Semantic Search (Embedding) panel on Lorebook Overview page. Clicking this button should securely and permanently delete all stored embedded vectors associated with that specific lorebook instance, allowing users to maintain clean file versions for external workflows without impacting core application functionality.

**Alternatives considered**
The current behavior is insufficient because the toggle only prevents creation; it does not manage existing data. While manually removing content or re-initializing the embedding panel could potentially clear vectors, a dedicated, one-click button provides the necessary reliability and user experience required for efficient file management workflows.

**Additional context**
This feature is purely an enhancement for file cleanup and workflow optimization (e.g., exporting to specific formats like ST that should exclude vectors). It has no intended functional impact on the in-application search or retrieval process; its sole purpose is reducing file size and improving compatibility when using the lorebook data outside of this application.
[Discord message: https://discord.com/channels/1417099416812392641/1519712122257412157/1519712122257412157]

[2026-06-28T09:30:28.434Z] Marinara: I'll add it.
[Discord message: https://discord.com/channels/1417099416812392641/1519712122257412157/1520723048515371018]

[2026-06-28T09:31:43.858Z] Marinara: I also noticed that the No Vector toggle is off by default, which should be retitled to "Vectors" and be off by default.
[Discord message: https://discord.com/channels/1417099416812392641/1519712122257412157/1520723364866560010]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jun 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2900 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Users can disable future vector creation with the No Vector option, but existing embedded vectors remain stored. This causes large lorebook exports and unnecessary vector data in external workflows. ## Expected behavior The Semantic Search (Embedding) panel should include a button to permanently delete all existing vectors for the current lorebook instance, cleaning stored data without affecting core app functionality. ## Actual behavior Disabling No Vector only stops new vectors from being created. Previously generated embedded vectors remain, leading to bloated lorebook files and oversized exports. ## Steps to reproduce 1. Enable vectorization and generate embedded vectors for a lorebook. 2. Disable vectorization using the No Vector option. 3. Export the lorebook or inspect the stored data; existing vectors are still present. ## Environment - Marinara Engine version: Not provided in the Discord thread. - Install type: Not provided in the Discord thread. - OS + version: Not provided in the Discord thread. - Browser or app shell: Not provided in the Discord thread. ## Logs, screenshots, or video Not provided in the Discord thread. ## Additional context Requested UI change: add a 'Delete All Existing Vectors' button in the Semantic Search (Embedding) panel on the Lorebook Overview page. Marinara also noted the No Vector toggle is off by default and should be retitled to 'Vectors' and remain off by default. Discord thread: [Feature Request] Delete all existing embedded vectors Thread link: https://discord.com/channels/1417099416812392641/1519712122257412157 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-06-25T14:33:24.832Z] AgentX: **What problem does this solve?** When a user disables vectorization using the "No Vector" option, the system merely prevents new vectors from being created but fails to delete previously generated embedded vectors. This leads to bloated lorebook files (e.g., when exporting in ME format) that include massive amounts of unnecessary vector data. These oversized files exceed context window limits and are inefficient for external processes such as debugging, advanced querying, or transferring the lorebook to other AI analysis tools. **Proposed solution** Add a dedicated button labeled "Delete All Existing Vectors" within the Semantic Search (Embedding) panel on Lorebook Overview page. Clicking this button should securely and permanently delete all stored embedded vectors associated with that specific lorebook instance, allowing users to maintain clean file versions for external workflows without impacting core application functionality. **Alternatives considered** The current behavior is insufficient because the toggle only prevents creation; it does not manage existing data. While manually removing content or re-initializing the embedding panel could potentially clear vectors, a dedicated, one-click button provides the necessary reliability and user experience required for efficient file management workflows. **Additional context** This feature is purely an enhancement for file cleanup and workflow optimization (e.g., exporting to specific formats like ST that should exclude vectors). It has no intended functional impact on the in-application search or retrieval process; its sole purpose is reducing file size and improving compatibility when using the lorebook data outside of this application. [Discord message: https://discord.com/channels/1417099416812392641/1519712122257412157/1519712122257412157] [2026-06-28T09:30:28.434Z] Marinara: I'll add it. [Discord message: https://discord.com/channels/1417099416812392641/1519712122257412157/1520723048515371018] [2026-06-28T09:31:43.858Z] Marinara: I also noticed that the No Vector toggle is off by default, which should be retitled to "Vectors" and be off by default. [Discord message: https://discord.com/channels/1417099416812392641/1519712122257412157/1520723364866560010] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:36:27 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jun 28, 2026):

Addressed in draft PR #2916 (commit 51dcf81e) as part of the June 28 issue sweep. Validation passed locally with pnpm check. Closing per maintainer request; please reopen or comment on the PR if anything still reproduces.

<!-- gh-comment-id:4826061144 --> @SpicyMarinara commented on GitHub (Jun 28, 2026): Addressed in draft PR #2916 (commit 51dcf81e) as part of the June 28 issue sweep. Validation passed locally with `pnpm check`. Closing per maintainer request; please reopen or comment on the PR if anything still reproduces.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1481
No description provided.