Layer 2Oct 2026 · personal project

Genten

From idea to evaluated, public product in about 2 daysVerified. 100%Verified accuracy across 25 questionsVerified.

English guides say ¥6 million. The FSA says ¥18 million.

The “¥6 million lifetime cap” on the tsumitate investment quota found in English guides never existed; the FSA sets the total for that quota at ¥18 million.

DEV article (by the author)(external site)Basis cited in the article: Japan’s Financial Services Agency (FSA)

An AI agent for foreign residents of Japan. It answers questions about NISA and furusato nozei in English, with every answer backed by the official Japanese source.

What I built

  • 35 rulesVerified, each dated and verified, with validity periods, successors and sources — versioned as a timeline with no gaps and no overlaps
  • Planned, built, evaluated, launched and written up on DEV over October 3–5, 2026 (article published October 5)

Evaluation

A fixed set of 25 questionsVerified, scored deterministically — no LLM in the grading loop. Every setup answered the same questions.

Model only (no retrieval)Keyword search (BM25) over the same 57 filesVerifiedGenten (Sanity knowledge base + MCP)
Accuracy76%Verified72%Verified100%Verified
Correct and cited an official source8%Verified20%Verified100%Verified
Average response time3.2 sVerified3.4 sVerifiedabout 15 sApprox.

Adding search on its own made accuracy worse, not better (76%Verified → 72%Verified). Genten, meanwhile, takes about 15 sApprox. to answer. That cost is shown here on purpose — it is the next thing to improve.

Result per question (question text not published)
SetupQ 1Q 2Q 3Q 4Q 5Q 6Q 7Q 8Q 9Q 10Q 11Q 12Q 13Q 14Q 15Q 16Q 17Q 18Q 19Q 20Q 21Q 22Q 23Q 24Q 25
Model only (no retrieval)CorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectIncorrectIncorrectIncorrectIncorrectIncorrectIncorrectCorrectCorrectCorrectCorrectCorrectCorrect
Keyword search (BM25) over the same 57 filesCorrectCorrectCorrectCorrectCorrectCorrectCorrectIncorrectCorrectCorrectCorrectIncorrectIncorrectIncorrectIncorrectIncorrectCorrectCorrectIncorrectCorrectCorrectCorrectCorrectCorrectCorrect
Genten (Sanity knowledge base + MCP)CorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrectCorrect

During development, a knowledge base built only from web pages started computing contribution limits on its own, without a source — and got the order of magnitude wrong 4 timesVerified. That is why Genten is built around structured rules. This happened during development and is separate from the evaluation above.

Next improvements

  • Faster responses
  • Measuring variance across repeated runs
  • Covering more programmes
  • Detecting changes to the official pages

Stack

  • Next.js/React
  • TypeScript
  • Vercel AI SDK
  • Claude Sonnet
  • zod
  • Sanity (Content Lake/Studio/Context MCP)
  • GROQ
  • Python (httpx/trafilatura)
  • Tailwind CSS
  • Vercel