Local RAG Tool Built with Nemotron Nano 9B v2 and vLLM Tool Calling

✍️ OpenClawRadar📅 Published: March 27, 2026🔗 Source
Local RAG Tool Built with Nemotron Nano 9B v2 and vLLM Tool Calling
Ad

Technical Implementation Details

A developer has shared their approach to building a local-first RAG research tool that runs entirely on a single GPU. The entire backend is contained in a single app.py file.

Stack and Configuration

The tool uses Nemotron Nano 9B v2 Japanese on vLLM with FP16 quantization, running on an RTX 5090 GPU. The backend combines FastAPI + SQLite FTS5 + Jinja2. For tool calling, the developer uses NVIDIA's official parser plugins, specifically --tool-call-parser nemotron_json and --tool-parser-plugin, noting that Nemotron v2 requires custom parser plugins rather than the built-in vLLM parsers (which are for v3).

Key Design Decisions

The system implements an extract → execute two-step flow:

  • When a question is asked, the system first extracts bilingual keywords (English and Japanese) via LLM
  • Runs FTS5 search on local sources AND DuckDuckGo web search in parallel
  • Shows results with checkboxes for user selection
  • Only after user selection does it generate the final response

This approach avoids dumping 100k+ tokens of context and hoping the model figures it out.

Ad

Performance and Features

  • Tool Calling: The model autonomously decides when to search the web, working surprisingly well at temperature 0.1
  • Prefix Cache Warmup: Instead of caching everything at source load, the KV cache is warmed up when the user sees the source preview. By the time they click Execute, the prefix is already cached using --enable-prefix-caching on vLLM
  • Bilingual FTS5 Search: User query → Nemotron extracts keywords in both English and Japanese → OR-joined FTS5 MATCH query, effective for multilingual patent/research data

Performance Numbers

  • ~80-120 tok/s output
  • 8192 max tokens
  • Source extraction: ~3-5s (keyword extraction + FTS5 + DDG parallel)
  • Full response with 5 sources + 3 web results: ~50s for a detailed answer on RTX 5090

Setup and Source

The source code is available at https://github.com/soy-tuber/SoyLM. It's a single file application that can be installed with uv pip install -r requirements.txt. Note that it requires vLLM with the Nemotron parser plugins separately.

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also

ACO System: Multi-Agent AI Pipeline from GitHub Issue to Merged PR
Tools

ACO System: Multi-Agent AI Pipeline from GitHub Issue to Merged PR

ACO System is an open-source multi-agent framework where six specialized AI agents autonomously run the entire dev pipeline from GitHub Issue to merged PR, with a deterministic Architect gate that rejects bad stories before they reach developers.

OpenClawRadar
Fixing OpenClaw Browser CAPTCHAs with Camoufox and CLI Wrapper
Tools

Fixing OpenClaw Browser CAPTCHAs with Camoufox and CLI Wrapper

OpenClaw's built-in Chromium browser triggers bot detection through Chrome DevTools Protocol, JavaScript injection artifacts, and hardware fingerprinting inconsistencies. The solution uses Camoufox (a Firefox fork) modified at the C++ level and wrapped in a CLI that returns accessibility-tree snapshots to reduce token usage.

OpenClawRadar
idea-reality-mcp: MCP server checks for existing tools before Claude writes code
Tools

idea-reality-mcp: MCP server checks for existing tools before Claude writes code

A developer built an MCP server called idea-reality-mcp that scans GitHub repos, Hacker News discussions, npm packages, and PyPI before Claude writes any code, returning a 'reality signal' score from 0-100 indicating market competition.

OpenClawRadar
HuggingFace Agent Skills: Standardized AI Task Definitions for Coding Agents
Tools

HuggingFace Agent Skills: Standardized AI Task Definitions for Coding Agents

HuggingFace Skills are self-contained folders with YAML frontmatter and guidance for AI agents to perform specific ML tasks like dataset creation, model training, and evaluation. They're interoperable with OpenAI Codex, Anthropic's Claude Code, Google Gemini CLI, and Cursor.

OpenClawRadar