Zervice LogoZervice
Hybrid RAG + 0-Neuron Cache

Turn Docs, Websites & PDFs Into a Zero-Hallucination RAG Chatbot

Combine D1 FTS5 lexical matching, Cloudflare Vectorize semantic embeddings (@cf/baai/bge-m3), a 2-step Durable Object crawler, and clickable citations in every answer.

At a Glance

Pure vector search frequently misses exact error codes, CLI flags, API endpoints, and product names—while naive web scrapers pull navigation boilerplate into your index. Zervice solves both by merging D1 FTS5 BM25 keyword precision with 1024-dimensional Vectorize semantic recall via Reciprocal Rank Fusion (RRF), backed by a human-reviewed 2-step doc crawler and 0-Neuron caching for instant repeat answers.

Four-Layer Retrieval & Caching Architecture

Every question moves through fast, cost-controlled stages designed for technical accuracy rather than guesswork.

Layer 1 — <15ms Cache
0-Neuron Smart Cache & Hot Question Shortcuts

Pinned FAQs and auto-promoted recurring questions match cleanly without invoking LLM inference, returning verified answers with clickable follow-up chips.

Layer 2 — Hybrid Recall
D1 SQLite FTS5 + bge-m3 Vectorize (RRF)

Executes exact keyword search (great for SKU numbers, error codes, and symbols) in parallel with semantic vector retrieval, fusing rankings cleanly with automatic fallback.

Layer 3 — Clean Ingestion
2-Step Durable Object Site & Doc Crawler

Step 1 discovers pages across your documentation site; Step 2 lets you select exactly which URLs to crawl into clean Markdown chunks before indexing.

Layer 4 — Trustworthy Output
Right-Aligned Citations & Safe Decline

Displays source links directly in the widget when verified chunks support an answer, and refuses ungrounded topics cleanly without surfacing unrelated links.

Pure Vector RAG vs. Zervice Hybrid RAG

Technical documentation mixes conceptual prose with exact identifiers. Hybrid retrieval ensures neither breaks.

CapabilityTypical Vector-Only ChatbotZervice Documentation RAG
Exact Error Codes, Flags & APIsOften missed or blurred by dense embeddings aloneD1 SQLite FTS5 BM25 guarantees exact lexical matching
Synonyms & Conceptual QueriesHandled via embeddings1024d @cf/baai/bge-m3 Vectorize merged via Reciprocal Rank Fusion
Multi-Page Site CrawlingOpaque scrape often indexing nav bars & footers2-Step Durable Object crawler: discover -> review URLs -> clean HTML extraction
Chunk Inspection & MaintenanceHidden black-box chunksExpandable inline chunk viewer, download, replace, rename & 1-click re-crawl
Frequent Question Cost & SpeedEvery message triggers full embedding + LLM call0-Neuron Hot Question shortcut resolves repeat FAQs in <15ms
Out-of-Scope DeclinesMay hallucinate or attach random top-k linksExplicit safe refusal while suppressing unrelated source citations

From Documentation URL to Verified Answers in 4 Steps

Keep your knowledge base transparent, inspectable, and easy to refresh as your product evolves.

1

Discover or Upload

Enter your docs root URL to discover subpages via the Durable Object crawler, or upload Markdown, text files, and /llms.txt.

2

Select & Cleanly Extract

Review the discovered URL tree, deselect changelogs or marketing fluff, and extract structured Markdown with headings preserved.

3

Index Chunks & Hot FAQs

Inspect generated chunks inline in the Knowledge Base console and promote top recurring questions to the 0-Neuron cache.

4

Test & Monitor

Ask follow-up questions (condensed with conversation history), inspect cited sources, and track retrieval performance.

Frequently Asked Questions

Common Questions About Documentation RAG Chatbot

How does follow-up question handling work in multi-turn chats?
In Default Consulting Mode, Zervice condenses short follow-up questions using recent conversation turns before running Hybrid RAG retrieval, so queries like "Does it support BYOC?" after asking about webhooks still find the right documentation chunks.
Can I refresh documentation after a product release?
Yes. Each ingested URL source in the Knowledge Base studio supports 1-click re-crawling as well as file replacement, chunk expansion, and filtering by source type.
What happens if the user asks something not in my docs?
The assistant responds with a helpful refusal instead of inventing facts, and automatically suppresses unrelated source citation badges so visitors are never pointed to misleading pages.
Do I have to manage a separate Pinecone or Qdrant subscription?
No. D1 SQLite FTS5 and Cloudflare Vectorize live inside the same Cloudflare runtime—or inside your own Cloudflare account under BYOC.

Continue Exploring Zervice

See how deployment sovereignty, Hybrid RAG, and guarded workflows fit together.

View all resources