The LayBuild blog
How AI support agents work, and where they break
We build an AI agent that answers support questions from your own documents, says so when they don't cover the question, and lets your team take over the chat. These posts explain how that works, where it falls short, and how to measure it honestly.
28 to 36 of 45 articles

Retrieval and grounding
Parent-child chunking for RAG: choosing a chunk size
How LayBuild splits documents into parent and child chunks for RAG: heading-aware splitting, chunk sizes, token overlap, and what each choice costs.
8 min read

Running support
Keeping an AI support agent's knowledge current
What goes stale in a support knowledge base, a refresh routine that works, and how to script updates against the LayBuild API. No connectors required.
7 min read

Retrieval and grounding
Sparse and Dense Retrieval: BM25 vs Vector Search Benchmarks for RAG
How to benchmark sparse, dense and hybrid retrieval on your own support documents, using recall@k and MRR, and how to test it on LayBuild.
8 min read

Security and deployment
Multi-Tenant SaaS Data Isolation in Next.js & PostgreSQL
Architecture guide to multi-tenant SaaS data isolation with Next.js, PostgreSQL, and pgvector. Row-level security, tenant keys, and deployment patterns.
7 min read

Retrieval and grounding
Fine-tuning or retrieval for support bots: a decision guide
When fine-tuning a model helps customer support, when retrieval is the better tool, and why LayBuild uses retrieval and does not fine-tune.
6 min read

Retrieval and grounding
SaaS knowledge base optimization for AI support & RAG (2026)
How to write a SaaS knowledge base an AI support agent can retrieve from: one question per heading, answer first, customers' words and a monthly review.
8 min read

Security and deployment
PostgreSQL and Supabase AI support agents: safe data integration and architecture
Building an AI support agent on PostgreSQL and Supabase: pgvector hybrid search, read-only API tools and least-privilege access.
9 min read

Retrieval and grounding
pgvector Hybrid Search: PostgreSQL, RRF & Vector RAG
pgvector hybrid search in PostgreSQL: vector and full-text results merged with Reciprocal Rank Fusion, parent-child chunks and a 0.4 relevance floor.
10 min read

Running support
Improving support agent answers with evidence, not guesses
A weekly loop for improving AI support answers: review fixed replies and low ratings, fix content before prompts, and watch LayBuild's auto-learning.
7 min read