LearnNewsExamplesServices
Frontmatter
id8416
titleUpdate SDK and add RAG verification script
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 8, 2026, 11:35 AM
updatedAtJan 8, 2026, 11:50 AM
githubUrlhttps://github.com/neomjs/neo/issues/8416
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 8, 2026, 11:50 AM

Update SDK and add RAG verification script

tobiu
tobiu commented on Jan 8, 2026, 11:35 AM
  1. Update ai/services.mjs to export the new KB_SearchService.
  2. Create ai/examples/test_rag.mjs to verify the ask_knowledge_base functionality. This script should:
    • Initialize the SearchService (and dependencies).
    • Perform a sample query (e.g., "What is a Viewport?").
    • Output the answer and references.
tobiu
tobiu Jan 8, 2026, 11:49 AM

Input from Gemini 3 Pro:

✦ Completed RAG integration:

  1. Updated ai/services.mjs to export KB_SearchService.
  2. Updated SearchService.mjs to:
    • Accept an object parameter {query, limit} (aligning with OpenAPI).
    • Read file content from disk for context (fallback to metadata).
  3. Created ai/examples/test_rag.mjs which successfully verified the tool's end-to-end functionality.