Running a Full Serverless RAG Console on 100% Cloudflare Free Tier (Workers AI + Vectorize + D1)
Most RAG tutorials require a managed Postgres instance, an external vector database, S3/R2 object storage, and a background queue worker. We wanted to see how far Cloudflare's Free Tier alone could go for a production-sh
Most RAG tutorials require a managed Postgres instance, an external vector database, S3/R2 object storage, and a background queue worker. We wanted to see how far Cloudflare's Free Tier alone could go for a production-shaped semantic search console.
The result is Vectora:
- Live Demo: vectora.teyform.studio
- Engineering Case Study: Teyform Studio β AI & RAG Platforms
Architecture at a Glance
-
Client-Side PDF Parsing (PDF.js): PDFs are parsed directly in the browser. Only extracted text chunks (
document_parts) are sent to the Worker β meaning zero R2 storage is needed. -
Storage in Cloudflare D1: Document metadata, chunk text, request logs, and audit events live in D1, with automated backups to an isolated
BACKUP_DBD1 database. -
Embeddings & Vector Search: Workers AI (
BGE-M3) embeds document chunks and user queries, stored and queried in Cloudflare Vectorize. - Revision-Aware KV Cache: Semantic search results and grounded citations are cached in Workers KV using revision-stamped keys so cache invalidation stays deterministic when documents are added or deleted.
-
Free-Tier Deployment Mode: Queues and paid Rate Limiting bindings are replaced by Cron Triggers, WAF rate-limiting rules, and
Smart Placement.
Try the Live Console
Open vectora.teyform.studio and use the persona switcher (Admin, Editor, Viewer) in the top bar to test PDF upload, semantic search with citations, cache hit/invalidation analytics, and D1 backup triggers.
If your team needs a custom RAG or edge AI platform built on Cloudflare, see our engineering breakdown at Teyform Studio.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.