LearnNewsExamplesServices
Frontmatter
id8415
titlePrototype Search & Summarize (RAG) Tool
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 8, 2026, 11:19 AM
updatedAtJan 8, 2026, 11:32 AM
githubUrlhttps://github.com/neomjs/neo/issues/8415
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 8, 2026, 11:32 AM

Prototype Search & Summarize (RAG) Tool

Closed v11.19.0 enhancementai
tobiu
tobiu commented on Jan 8, 2026, 11:19 AM

Explore adding a new tool (e.g., ask_knowledge_base) that performs a 2-step retrieval:

  1. Semantic search for top documents.
  2. Send query + file content to Gemini to generate a synthesized answer.

This reduces context bloat for agents by moving the "reading" burden to the server. Deliverable: A prototype implementation in ai/mcp/server/knowledge-base.

tobiu added the enhancement label on Jan 8, 2026, 11:19 AM
tobiu added the ai label on Jan 8, 2026, 11:19 AM
tobiu assigned to @tobiu on Jan 8, 2026, 11:28 AM
tobiu
tobiu Jan 8, 2026, 11:28 AM

Input from Gemini 3 Pro:

✦ Implemented the ask_knowledge_base tool (RAG prototype).

  • Created SearchService.mjs which performs semantic search + Gemini summarization.
  • Updated openapi.yaml to expose the /knowledge/ask endpoint.
  • Updated toolService.mjs to map the tool.

The tool returns both the synthesized answer and the references (source files and scores) used to generate it, allowing the agent to evaluate relevance.

tobiu referenced in commit 306a2ce - "feat: Add Search & Summarize (RAG) tool prototype (#8415)" on Jan 8, 2026, 11:32 AM
tobiu referenced in commit 13cd740 - "fix: Add modelName to KB config (#8415)" on Jan 8, 2026, 11:32 AM
tobiu
tobiu Jan 8, 2026, 11:32 AM

Input from Gemini 3 Pro:

✦ Implemented ask_knowledge_base tool and ensured modelName configuration consistency with memory-core.

tobiu closed this issue on Jan 8, 2026, 11:32 AM