How we built Search for Agents on dejan.ai without Cloudflare Dejan.ai built a self-hosted /.well-known/search API without Cloudflare AI Search, using gemini-decision-1 boundary classification, gemini-embedding-2 contextual vectors and PostgreSQL pgvector hybrid search across 5,718 chunks. Backfilling all 2,111 live units produced 5,718 chunks with zero failures in 3 minutes 20 seconds, and reframing chunk boundaries as end-of-unit/start-of-new transitions cut orphan headings from 5 to 0 and chunk count from 20 to 12 on a 3,150-word test post. The pipeline frames semantic chunking as binary classification in a single gemini-decision-1 call (209 to 329 ms per document, 0 output tokens, 100% verbatim text) and embeds each chunk with Title > Section context at 768 Matryoshka dimensions. How we built Search for Agents on dejan.ai without Cloudflare How dejan.ai built a self-hosted /.well-known/search API without Cloudflare: gemini-decision-1 boundary classification, gemini-embedding-2 contextual vectors, and PostgreSQL pgvector hybrid search across 5,718 chunks. We built a self-hosted /.well-known/search https://dejan.ai/.well-known/search?q=how+does+PoolDPP+avoid+near-duplicate+prompts /search https://dejan.ai/search?q=PoolDPP dejan.ai without using Cloudflare AI Search. The pipeline converts each published post, concept, page, and Codebase Explorer element to Markdown, frames semantic chunking as a binary boundary classification task in a single gemini-decision-1 call 209 to 329 ms per document, 0 output tokens, 100% verbatim text , embeds every chunk with Title Section context using gemini-embedding-2 768 Matryoshka dimensions , and stores both a generated PostgreSQL tsvector GIN and a pgvector HNSW index in one table search chunks . Backfilling all 2,111 live units produced 5,718 chunks with zero failures in 3 minutes 20 seconds. Figure 1: End-to-end indexing and retrieval pipeline on dejan.ai . Why we framed semantic chunking as binary classification Fixed-size chunking such as Cloudflare's 1,024-token default with 10% overlap cuts across ideas and tables at arbitrary token counts. Generative LLM chunking asking a model to echo the document back with