How we built Search for Agents on dejan.ai without Cloudflare

dejan.ai5 min read

The author explains how they built a self-hosted semantic search engine and /.well-known/search agent endpoint on dejan.ai without using Cloudflare AI Search. The pipeline converts content to Markdown, performs semantic chunking using a binary boundary classification call via gemini-decision-1 with zero output tokens, embeds chunks with contextual Title > Section prefixes using gemini-embedding-2, and stores everything in a single PostgreSQL table using hybrid GIN and pgvector HNSW indexes. Open article →