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
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 8, 2026, 11:32 AM

Prototype Search & Summarize (RAG) Tool

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
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
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.