[GH-ISSUE #4864] [Issue]: Memory re-vectorization uses sidecar embeddings with Random Model Connection #2692

Closed
opened 2026-10-21 05:53:10 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When Memory Recall is re-vectorized while using the Random Model Connection, it appears to fall back to the local sidecar embedding instead of the embedding configured for models in the random pool. This prevents memories from being injected into prompts.

Expected behavior

Memory re-vectorization with the Random Model Connection should use the selected/configured embedding model, consistent with the models in the random pool.

Actual behavior

Re-vectorization appears to use the local sidecar embedding when Random Model Connection is selected. Memories are not injected afterward; selecting a specific model and running re-vectorization again restores memory injection.

Steps to reproduce

  1. Configure embedding models for the models included in a Random Model Connection pool.
  2. Select the Random Model Connection.
  3. Use the Memory Recall 'Re-Vectorize All' action.
  4. Attempt to trigger memory injection into a prompt.
  5. Observe that memories are not injected.
  6. Switch to a specific model and run 'Re-Vectorize All' again.
  7. Observe that memories are injected into prompts again.

Environment

  • Marinara Engine version: v2.4.2, build fc58ee4, Staging branch
  • Install type: Not provided
  • OS + version: Windows 11
  • Browser or app shell: Firefox

Logs, screenshots, or video

Earlier console error after changing embedding models: "Skipping memory chunk insert for chat y0hbHxrR2epzzyoTqo6ID because embedding dimension changed from 384 to 768. Rebuild memories before mixing embedding models." Initial screenshot: https://cdn.discordapp.com/attachments/1536183121387593869/1536183121706221578/image.png?ex=6a7b2245&is=6a79d0c5&hm=cd42ebead9b9e8d1da08419b804723b2498d7b2d30b06f82960a24b65f479512&. Random Model Connection screenshot: https://cdn.discordapp.com/attachments/1536183121387593869/1536366745596592260/image.png?ex=6a7b2488&is=6a79d308&hm=ee09c0fa15c6a5281c1102a1450a8c180e4b0f31833e050e77507585c9eb74ab&

Additional context

The newly added Memory Recall 'Re-Vectorize All' button works when a specific model is selected. A model picker similar to the Lorebook embedding picker, or a warning when Random Model Connection would use the sidecar embedding, may help. A maintainer confirmed that it should use the selected embedding.

Discord thread: FR - Re-Vectorize Memory Chunks - Like in Lorebooks
Discord thread link: https://discord.com/channels/1417099416812392641/1536183121387593869
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (6 messages)
[2026-08-10T01:23:17.041Z] ylliselmanii: Release: v2.4.2
Build: fc58ee4
Branch: Staging
Installation: Windows 11 accessed through Firefox browser

I am being plagued by a single, ever reoccuring message in my ME console log. I shiver just thinking about it... :pain: 

Behold, the terror that escaped from my nightmares into the waking world! 

> Skipping memory chunk insert for chat y0hbHxrR2epzzyoTqo6ID because embedding dimension changed from 384 to 768. Rebuild memories before mixing embedding models."

Uh, anyway, I can't seem to get rid of it after changing embedding models ages ago, effectively disabling the Memory Recall function for me completely. Rebuilding Memories did not do the trick either... don't even really know what it did.

Anyway, I wanted to ask if the function to revectorize entries in Lorebooks could be copy-pasted into the Memory Recall window, because I don't know what else could be the problem. You know, "Re-Vectorize All". 

I'd really, really appreciate it. 

Or if not, maybe someone could just explain how to fix that? 
Thank you.

[attached image 1: https://cdn.discordapp.com/attachments/1536183121387593869/1536183121706221578/image.png?ex=6a7b2245&is=6a79d0c5&hm=cd42ebead9b9e8d1da08419b804723b2498d7b2d30b06f82960a24b65f479512&]
[Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536183121387593869]

[2026-08-10T05:33:09.342Z] Marinara: @Professor Mari GitHub Issue
[Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536246003655512084]

[2026-08-10T05:33:25.220Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/4843
[Issue]: Memory Recall fails after changing embedding dimensions ·...
Summary Memory chunks are repeatedly skipped after changing from a 384-dimension embedding model to a 768-dimension model. Rebuilding memories does not resolve the mismatch, leaving Memory Recall e...
[Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536246070252675233]

[2026-08-10T09:51:07.358Z] Marinara: Staging.
[Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536310923159937075]

[2026-08-10T13:32:56.554Z] ylliselmanii: I can confirm that the new 're-vectorize' button is there and works!!! Thank you a lot!

however, and I don't wanna be a complainer, or be pedantic or anything, but I noticed that if you use the 'Random' Model Connection, i think it automatically falls back to the local sidecar embedding, instead of using the configured one, which I set up for all the models in the random pool.

So i had to switch back to using a specific model, then re-vectorize all, and only then did i get the memories actually injected into the prompt again.

So maybe that could be circumvented by also putting in the model picker that's found in the lorebook embedding part? or maybe just a warning or something?

[attached image 1: https://cdn.discordapp.com/attachments/1536183121387593869/1536366745596592260/image.png?ex=6a7b2488&is=6a79d308&hm=ee09c0fa15c6a5281c1102a1450a8c180e4b0f31833e050e77507585c9eb74ab&]
[Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536366745973956630]

[2026-08-10T13:41:28.126Z] Marinara: Yeah, it should use the one you selected.
[Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536368891662696519]

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 (Aug 10, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4864 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When Memory Recall is re-vectorized while using the Random Model Connection, it appears to fall back to the local sidecar embedding instead of the embedding configured for models in the random pool. This prevents memories from being injected into prompts. ## Expected behavior Memory re-vectorization with the Random Model Connection should use the selected/configured embedding model, consistent with the models in the random pool. ## Actual behavior Re-vectorization appears to use the local sidecar embedding when Random Model Connection is selected. Memories are not injected afterward; selecting a specific model and running re-vectorization again restores memory injection. ## Steps to reproduce 1. Configure embedding models for the models included in a Random Model Connection pool. 2. Select the Random Model Connection. 3. Use the Memory Recall 'Re-Vectorize All' action. 4. Attempt to trigger memory injection into a prompt. 5. Observe that memories are not injected. 6. Switch to a specific model and run 'Re-Vectorize All' again. 7. Observe that memories are injected into prompts again. ## Environment - Marinara Engine version: v2.4.2, build fc58ee4, Staging branch - Install type: Not provided - OS + version: Windows 11 - Browser or app shell: Firefox ## Logs, screenshots, or video Earlier console error after changing embedding models: "Skipping memory chunk insert for chat y0hbHxrR2epzzyoTqo6ID because embedding dimension changed from 384 to 768. Rebuild memories before mixing embedding models." Initial screenshot: https://cdn.discordapp.com/attachments/1536183121387593869/1536183121706221578/image.png?ex=6a7b2245&is=6a79d0c5&hm=cd42ebead9b9e8d1da08419b804723b2498d7b2d30b06f82960a24b65f479512&. Random Model Connection screenshot: https://cdn.discordapp.com/attachments/1536183121387593869/1536366745596592260/image.png?ex=6a7b2488&is=6a79d308&hm=ee09c0fa15c6a5281c1102a1450a8c180e4b0f31833e050e77507585c9eb74ab& ## Additional context The newly added Memory Recall 'Re-Vectorize All' button works when a specific model is selected. A model picker similar to the Lorebook embedding picker, or a warning when Random Model Connection would use the sidecar embedding, may help. A maintainer confirmed that it should use the selected embedding. Discord thread: FR - Re-Vectorize Memory Chunks - Like in Lorebooks Discord thread link: https://discord.com/channels/1417099416812392641/1536183121387593869 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (6 messages)</summary> ```text [2026-08-10T01:23:17.041Z] ylliselmanii: Release: v2.4.2 Build: fc58ee4 Branch: Staging Installation: Windows 11 accessed through Firefox browser I am being plagued by a single, ever reoccuring message in my ME console log. I shiver just thinking about it... :pain: Behold, the terror that escaped from my nightmares into the waking world! > Skipping memory chunk insert for chat y0hbHxrR2epzzyoTqo6ID because embedding dimension changed from 384 to 768. Rebuild memories before mixing embedding models." Uh, anyway, I can't seem to get rid of it after changing embedding models ages ago, effectively disabling the Memory Recall function for me completely. Rebuilding Memories did not do the trick either... don't even really know what it did. Anyway, I wanted to ask if the function to revectorize entries in Lorebooks could be copy-pasted into the Memory Recall window, because I don't know what else could be the problem. You know, "Re-Vectorize All". I'd really, really appreciate it. Or if not, maybe someone could just explain how to fix that? Thank you. [attached image 1: https://cdn.discordapp.com/attachments/1536183121387593869/1536183121706221578/image.png?ex=6a7b2245&is=6a79d0c5&hm=cd42ebead9b9e8d1da08419b804723b2498d7b2d30b06f82960a24b65f479512&] [Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536183121387593869] [2026-08-10T05:33:09.342Z] Marinara: @Professor Mari GitHub Issue [Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536246003655512084] [2026-08-10T05:33:25.220Z] Professor Mari [bot]: Skill issue. Made a GitHub issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/4843 [Issue]: Memory Recall fails after changing embedding dimensions ·... Summary Memory chunks are repeatedly skipped after changing from a 384-dimension embedding model to a 768-dimension model. Rebuilding memories does not resolve the mismatch, leaving Memory Recall e... [Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536246070252675233] [2026-08-10T09:51:07.358Z] Marinara: Staging. [Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536310923159937075] [2026-08-10T13:32:56.554Z] ylliselmanii: I can confirm that the new 're-vectorize' button is there and works!!! Thank you a lot! however, and I don't wanna be a complainer, or be pedantic or anything, but I noticed that if you use the 'Random' Model Connection, i think it automatically falls back to the local sidecar embedding, instead of using the configured one, which I set up for all the models in the random pool. So i had to switch back to using a specific model, then re-vectorize all, and only then did i get the memories actually injected into the prompt again. So maybe that could be circumvented by also putting in the model picker that's found in the lorebook embedding part? or maybe just a warning or something? [attached image 1: https://cdn.discordapp.com/attachments/1536183121387593869/1536366745596592260/image.png?ex=6a7b2488&is=6a79d308&hm=ee09c0fa15c6a5281c1102a1450a8c180e4b0f31833e050e77507585c9eb74ab&] [Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536366745973956630] [2026-08-10T13:41:28.126Z] Marinara: Yeah, it should use the one you selected. [Discord message: https://discord.com/channels/1417099416812392641/1536183121387593869/1536368891662696519] ``` </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:53:10 +07:00
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#2692
No description provided.