[GH-ISSUE #8663] [Feature]: Test an embedding model while setting it up in Connections #8448

Closed
opened 2026-11-07 16:43:01 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

When you set up an embedding model in Connections, nothing tells you whether it works. The model editor's Semantic search embeddings section has fields for the embedding model, the Embedding endpoint URL and an Embedding connection override, but no test action. Chat models have Test provider and Send test message, and image models have Test image. A wrong model name, endpoint or key only shows up later, when lorebook vectorization or semantic search quietly fails.

There's also a related gap. The existing POST /api/connections/:id/test-embedding route, which the Embeddings job picker calls silently before it assigns a model, doesn't test what real semantic search uses:

  • It embeds with the row's own baseUrl and ignores Embedding endpoint URL (embeddingBaseUrl).
  • It ignores Embedding connection (embeddingConnectionId).

Real calls resolve both (resolveEmbeddingSource in packages/server/src/services/memory-recall-embedding.ts). So a test can pass while real use fails, or the other way round, whenever either override is set.

Proposed solution

  • Test embedding button in the model editor's Semantic search embeddings section.
    • It saves pending edits first, as Test provider does.
    • It sends one short embedding request with the model, endpoint and connection that real semantic search would use.
    • It shows the result inline: the vector size and the time taken, or the provider's error in plain words.
  • The test route resolves the embedding source the same way real calls do, honouring embeddingBaseUrl and embeddingConnectionId. The Embeddings job picker's silent check then tests the real path too.
  • English strings in en.json, a regression for the resolution parity, a browser test for the button, and the semantic-search docs updated with a [docs-i18n] follow-up.

Alternatives considered

  • Relying on the Embeddings picker's silent check. It runs only when a model is assigned to the job, not when you edit the model's embedding fields, and it shows no result.
  • Testing by vectorizing a lorebook. That's slow and indirect, and it costs a full run to find a typo.

Additional context

Requested by the maintainer. The route and the picker's check were added in the account-first Connections redesign (#8456).

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.

🤖 Generated with Claude Code

Originally created by @SpicyMarinara on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8663 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? When you set up an embedding model in Connections, nothing tells you whether it works. The model editor's **Semantic search embeddings** section has fields for the embedding model, the **Embedding endpoint URL** and an **Embedding connection** override, but no test action. Chat models have **Test provider** and **Send test message**, and image models have **Test image**. A wrong model name, endpoint or key only shows up later, when lorebook vectorization or semantic search quietly fails. There's also a related gap. The existing `POST /api/connections/:id/test-embedding` route, which the Embeddings job picker calls silently before it assigns a model, doesn't test what real semantic search uses: - It embeds with the row's own `baseUrl` and ignores **Embedding endpoint URL** (`embeddingBaseUrl`). - It ignores **Embedding connection** (`embeddingConnectionId`). Real calls resolve both (`resolveEmbeddingSource` in `packages/server/src/services/memory-recall-embedding.ts`). So a test can pass while real use fails, or the other way round, whenever either override is set. ## Proposed solution - **Test embedding** button in the model editor's Semantic search embeddings section. - It saves pending edits first, as **Test provider** does. - It sends one short embedding request with the model, endpoint and connection that real semantic search would use. - It shows the result inline: the vector size and the time taken, or the provider's error in plain words. - The test route resolves the embedding source the same way real calls do, honouring `embeddingBaseUrl` and `embeddingConnectionId`. The Embeddings job picker's silent check then tests the real path too. - English strings in `en.json`, a regression for the resolution parity, a browser test for the button, and the semantic-search docs updated with a `[docs-i18n]` follow-up. ## Alternatives considered - Relying on the Embeddings picker's silent check. It runs only when a model is assigned to the job, not when you edit the model's embedding fields, and it shows no result. - Testing by vectorizing a lorebook. That's slow and indirect, and it costs a full run to find a typo. ## Additional context Requested by the maintainer. The route and the picker's check were added in the account-first Connections redesign (#8456). ## 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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#8448
No description provided.