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 filesVerified | Genten (Sanity knowledge base + MCP) | |
|---|---|---|---|
| Accuracy | 76%Verified | 72%Verified | 100%Verified |
| Correct and cited an official source | 8%Verified | 20%Verified | 100%Verified |
| Average response time | 3.2 sVerified | 3.4 sVerified | about 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.
| Setup | Q 1 | Q 2 | Q 3 | Q 4 | Q 5 | Q 6 | Q 7 | Q 8 | Q 9 | Q 10 | Q 11 | Q 12 | Q 13 | Q 14 | Q 15 | Q 16 | Q 17 | Q 18 | Q 19 | Q 20 | Q 21 | Q 22 | Q 23 | Q 24 | Q 25 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model only (no retrieval) | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Incorrect | Incorrect | Incorrect | Incorrect | Incorrect | Incorrect | Correct | Correct | Correct | Correct | Correct | Correct |
| Keyword search (BM25) over the same 57 files | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Incorrect | Correct | Correct | Correct | Incorrect | Incorrect | Incorrect | Incorrect | Incorrect | Correct | Correct | Incorrect | Correct | Correct | Correct | Correct | Correct | Correct |
| Genten (Sanity knowledge base + MCP) | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct | Correct |
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