artenis.alija
ende
RAG · LLM · Architecture8 min read20 February 2025

RAG Architectures: What Nobody Tells You

The vector search is the easy part. Getting chunking right is where most RAG implementations quietly fail.

Everyone building RAG systems focuses on the retrieval model — the embedding quality, the vector store, the similarity metric. These matter. But in my experience, chunking strategy has more impact on output quality than any retrieval parameter, and it gets a fraction of the attention.

Fixed-size chunking (512 tokens, 20% overlap) is a reasonable baseline and works fine for dense technical documentation. It breaks down on narrative content — legal contracts, meeting transcripts — where meaning spans paragraphs. For those, I use semantic chunking: split on natural boundaries, then merge small adjacent chunks until you hit a token budget.

The other under-discussed lever is query rewriting. A user query like 'what does the contract say about termination' is semantically distant from the clause it's asking about. A simple LLM call to expand the query into 3–5 hypothetical answer fragments before retrieval (HyDE) dramatically improves recall without adding latency you'd notice.

Metadata filtering deserves its own mention. In a multi-tenant knowledge base, namespace-level filters cut retrieval time in half and eliminate cross-tenant bleed. Always store doc_id, section, date, and source as filterable metadata fields — you will need them.

Citation

Artenis Alija. "RAG Architectures: What Nobody Tells You About Chunking." 2025. https://artenisalija.com/blog/rag-architectures-chunking-guide/

https://artenisalija.com/blog/rag-architectures-chunking-guide/

More posts

United Arab Emirates · AI automation services7 Sept 2026

AI Automation Consultant in United Arab Emirates

Plan AI automation services in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day remote pilot with.

United Arab Emirates · dashboard development and business intelligence7 Sept 2026

Power BI Dashboard Developer in United Arab Emirates

Plan dashboard development and business intelligence in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe.

United Arab Emirates · AI-assisted animation and video production7 Sept 2026

AI Video Production in United Arab Emirates

Plan AI-assisted animation and video production in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day.

United Arab Emirates · n8n workflow automation7 Sept 2026

n8n Automation Consultant in United Arab Emirates

Plan n8n workflow automation in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day remote pilot with.

United Arab Emirates · AI agents, RAG, and data pipelines7 Sept 2026

AI Agent Development in United Arab Emirates

Plan AI agents, RAG, and data pipelines in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day remote.

United Arab Emirates · WhatsApp AI chatbot development7 Sept 2026

WhatsApp AI Chatbot Developer in United Arab Emirates

Plan WhatsApp AI chatbot development in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day remote pilot.