Aug 25, 2026

🏗️ When a Managed Knowledge Base Isn't Enough

In the previous article, we looked at how a knowledge base works—from connectors and indexing to retrieval and generation.

The next question is usually:

Should I use a managed knowledge base or build my own?

For most projects, the answer is simple:

Start with a managed service.

Custom architectures only become worthwhile when your requirements exceed what managed knowledge bases were designed to solve.


☁️ Why Managed Knowledge Bases Exist

Managed knowledge bases package the entire retrieval pipeline into a single service.

They typically provide:

  • Connectors
  • Document ingestion
  • Chunking
  • Embedding generation
  • Indexes
  • Retrieval
  • Synchronization

You configure the pipeline.

The platform operates it.

For many RAG applications, that's exactly what you need.

Typical use cases include:

  • Internal documentation
  • Product manuals
  • Customer support
  • Enterprise search
  • AI assistants

🔧 When Managed Starts to Break Down

Managed services are intentionally opinionated.

They optimize for common retrieval problems.

Eventually, some teams discover that retrieval isn't their biggest challenge anymore.

The challenge becomes everything that happens before retrieval.

For example:

  • Custom chunking strategies
  • Rich metadata extraction
  • External data enrichment
  • Specialized embedding models
  • Multiple indexing pipelines
  • Custom ranking logic

These requirements often don't fit naturally into a managed pipeline.


🚀 When Custom Makes Sense

Building your own knowledge base gives you complete control over every stage of the pipeline.

You can customize:

  • Connectors
  • Ingestion
  • Chunking
  • Metadata extraction
  • Enrichment
  • Embedding generation
  • Retrieval

That flexibility comes at a cost.

You now own:

  • Infrastructure
  • Scaling
  • Monitoring
  • Synchronization
  • Upgrades
  • Operational support

The question isn't whether you can build it.

The question is whether you need to.


📋 Decision Guide

RequirementManagedCustom
Standard document search
Built-in connectors
Semantic search
Basic metadata filtering
Low operational overhead
Custom chunking
Rich metadata extraction
External data enrichment
Multiple indexing pipelines
Specialized retrieval or ranking
Full control over the pipeline

⚠️ Don't Build Custom Too Early

One of the biggest misconceptions is that a vector database is a knowledge base.

It isn't.

The real complexity isn't storing vectors.

It's everything around them:

  • ingestion
  • synchronization
  • metadata management
  • enrichment
  • indexing
  • retrieval

Building those components yourself is a long-term engineering commitment.


🎯 Final Thought

Managed knowledge bases solve the infrastructure problem.

Custom knowledge bases solve specialized business problems.

Start with a managed knowledge base whenever possible.

Move to a custom architecture only when your requirements clearly exceed what managed services were designed to support.

In the next article, we'll look at one of the biggest reasons teams outgrow managed knowledge bases:

The real challenge isn't retrieval—it's the ingestion and enrichment pipeline.

📚 Understanding Knowledge Bases: From Documents to Retrieval


In the previous article, we looked at different retrieval strategies—BM25, Vector Search, Hybrid Search, SQL, and LLM-powered retrieval. The next logical question is:

Where does the information actually come from?

The answer is a Knowledge Base.

Knowledge bases have become the foundation of many RAG and AI applications. Every major cloud provider now offers a managed knowledge base service, but regardless of the implementation, they all follow a very similar architecture.

At a high level, a knowledge base consists of six stages:

Data Sources
      ↓
Connectors
      ↓
Indexing Pipeline
      ↓
Indexes
(Vector • Metadata • Keyword)
      ↓
Retrieval
      ↓
LLM

🔌 Connectors

The first step is getting data into the knowledge base.

Common connectors include:

  • S3

  • SharePoint

  • Confluence

  • Google Drive

  • Salesforce

  • Web crawlers

  • Custom APIs

The connector continuously discovers new or updated documents and feeds them into the indexing pipeline.


🏗️ Indexing Pipeline

Before documents become searchable, they pass through an indexing pipeline.

Typical steps include:

  • Text extraction

  • Chunking

  • Metadata extraction

  • Embedding generation

  • Index creation

This is where raw documents are transformed into searchable knowledge.


📚 Indexes

Most knowledge bases maintain multiple indexes, each optimized for a different retrieval strategy.

  • Vector Index for semantic search

  • Metadata Index for filtering

  • Keyword Index (BM25) for exact matching

Different queries may use one index—or combine multiple indexes—depending on the retrieval strategy.


🔍 Retrieval

When a user submits a query, the retrieval layer determines the best way to find relevant information.

Depending on the use case, it may use:

  • BM25

  • Vector Search

  • Hybrid Search

Metadata filters are often applied before returning the most relevant chunks.

(If you're interested in when to use each retrieval strategy, see my previous article on BM25, Vector Search, Hybrid Search, SQL, and LLM-powered retrieval.)


🤖 Generation

The retrieved chunks are passed to an LLM as context.

The LLM doesn't search your documents directly—it generates an answer using the retrieved context.

This is the Generation in Retrieval-Augmented Generation (RAG).


☁️ Managed Knowledge Bases

Most cloud providers package this entire pipeline into a managed service.

You typically configure:

  • Connectors

  • Chunking strategy

  • Embedding model

  • Indexes

  • Retrieval settings

The platform manages ingestion, indexing, synchronization, and retrieval.

Although services differ in their connectors, indexing options, and extensibility, the underlying architecture remains largely the same.


🎯 Final Thought

A knowledge base is much more than a vector database.

It's an end-to-end pipeline that ingests content, transforms it into searchable indexes, retrieves relevant context, and provides it to an LLM.

Understanding this architecture makes it much easier to understand where managed knowledge bases fit—and why some organizations eventually choose to build their own.