[GH-ISSUE #3277] docs: no user guide for Knowledge Sources / RAG (Retrieval vs Router agents, uploading sources) #1772

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

Originally created by @kolacheee on GitHub (Jul 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3277

Originally assigned to: @SpicyMarinara on GitHub.

A shipped, user-facing feature has no user documentation. Found in a docs-coverage sweep against v2.1.0 (each gap re-checked with fresh greps across docs/ and README.md to confirm coverage really is absent). Suggested home: new-doc docs/KNOWLEDGE_SOURCES.md.

Feature: Knowledge Sources & retrieval (RAG): Knowledge Retrieval vs Knowledge Router agents, uploading sources, embedder dependency

Why it needs docs (user impact):

This is Marinara's built-in RAG. The Retrieval-vs-Router choice materially changes cost and accuracy, the Router's dependence on tight entry descriptions is a hidden gotcha, and retrieval silently degrades when the embedder is unavailable. Users have no reference to set this up or debug 'my knowledge isn't being pulled in'.

What the docs currently say (i.e. the gap):

grep -ri 'knowledge source|knowledge retrieval|knowledge router|knowledge base|RAG' docs + README: PROFESSOR_MARI.md lines 91-93 give three one-line definitions but no how-to and no cost/precision guidance; ROLEPLAY.md lines 87/93/272 mention them only as cached injections that 'can be viewed but not re-run'; FRONTEND.md lines 235/535/605/648 are dev tables. README has zero hits. Nothing explains how to upload a knowledge source, the Retrieval-vs-Router cost/precision choice, that Router keys off each entry's user-written description, or that retrieval needs a working embedder.

Evidence it shipped and is user-facing:

Two distinct agents with a real cost/precision tradeoff, verified in source. packages/server/src/services/agents/knowledge-router.ts header: 'A lower-cost alternative to the knowledge-retrieval agent. Instead of summarizing every lorebook entry, the router reads a short catalog (entry id + name + summary) and returns the IDs...'; the catalog summary is 'the entry's user-written description if non-empty, otherwise a fallback snippet' and the design 'let[s] power users tune precision by writing tight descriptions'. packages/server/src/routes/knowledge-sources.routes.ts handles file upload. Retrieval semantic modes fall back to random when the local embedder is unavailable.

Confidence: high. This is a suggested new doc/section, not a bug - close if it's out of scope or already planned.

Originally created by @kolacheee on GitHub (Jul 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3277 Originally assigned to: @SpicyMarinara on GitHub. A shipped, user-facing feature has **no user documentation**. Found in a docs-coverage sweep against **v2.1.0** (each gap re-checked with fresh greps across `docs/` and `README.md` to confirm coverage really is absent). Suggested home: **new-doc `docs/KNOWLEDGE_SOURCES.md`**. **Feature:** Knowledge Sources & retrieval (RAG): Knowledge Retrieval vs Knowledge Router agents, uploading sources, embedder dependency **Why it needs docs (user impact):** This is Marinara's built-in RAG. The Retrieval-vs-Router choice materially changes cost and accuracy, the Router's dependence on tight entry descriptions is a hidden gotcha, and retrieval silently degrades when the embedder is unavailable. Users have no reference to set this up or debug 'my knowledge isn't being pulled in'. **What the docs currently say (i.e. the gap):** grep -ri 'knowledge source|knowledge retrieval|knowledge router|knowledge base|RAG' docs + README: PROFESSOR_MARI.md lines 91-93 give three one-line definitions but no how-to and no cost/precision guidance; ROLEPLAY.md lines 87/93/272 mention them only as cached injections that 'can be viewed but not re-run'; FRONTEND.md lines 235/535/605/648 are dev tables. README has zero hits. Nothing explains how to upload a knowledge source, the Retrieval-vs-Router cost/precision choice, that Router keys off each entry's user-written description, or that retrieval needs a working embedder. **Evidence it shipped and is user-facing:** Two distinct agents with a real cost/precision tradeoff, verified in source. packages/server/src/services/agents/knowledge-router.ts header: 'A lower-cost alternative to the knowledge-retrieval agent. Instead of summarizing every lorebook entry, the router reads a short catalog (entry id + name + summary) and returns the IDs...'; the catalog summary is 'the entry's user-written description if non-empty, otherwise a fallback snippet' and the design 'let[s] power users tune precision by writing tight descriptions'. packages/server/src/routes/knowledge-sources.routes.ts handles file upload. Retrieval semantic modes fall back to random when the local embedder is unavailable. _Confidence: high. This is a suggested new doc/section, not a bug - close if it's out of scope or already planned._
bsakaguchi 2026-10-21 05:42:30 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 5, 2026):

Addressed in #3289.

<!-- gh-comment-id:4887418722 --> @SpicyMarinara commented on GitHub (Jul 5, 2026): Addressed in #3289.
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#1772
No description provided.