Skip to main content

Bedrock Managed Knowledge Base vs. Custom RAG Pipeline

Ayswarrya G, Contributing Writer, Atlan
Contributing Writer, Data Engineering & Metadata
Updated:09/11/2026
|
Published:09/11/2026
13 min read

Key takeaways

  • Managed Knowledge Bases let you choose the embedding model and reranking; Bedrock manages parsing and the vector store.
  • Self-managed Knowledge Bases open up OpenSearch, Aurora pgvector, Neptune Analytics, Kendra, and vector-less NL2SQL.
  • Custom RAG pipelines mean choosing chunkers, parsers, embedding models, vector databases, and orchestration engines.
  • Neither path ships an ontology, and AWS's open-source accelerator covers only database and document sources.

What is the difference between Bedrock managed knowledge base and custom RAG pipeline?

Amazon Bedrock is AWS's foundation model and agentic application service, and it supports two RAG patterns for grounding a model in enterprise data. Bedrock Knowledge Bases is a managed or self-managed retrieval offering, while a custom RAG pipeline means assembling your own ingestion, embedding, and retrieval stack from services inside or outside AWS. The right choice depends on how much control you need over vector stores, chunking, and search patterns, and neither option builds the ontology or cross-system context an agent still needs.

The two Bedrock RAG patterns:

  • Bedrock Knowledge Bases: a fully managed or self-managed retrieval offering built into Bedrock
  • Custom RAG pipeline: your own ingestion, embedding, and retrieval stack, built from AWS or third-party services

Not sure if your agents are context-ready?

Get the Readiness Checklist

Amazon Bedrock gives you two starting points for grounding a large language model in enterprise data: Knowledge Bases, in a managed or self-managed flavor, or a fully custom RAG pipeline built from individual AWS and third-party services. The real question isn’t which one Amazon documents better. It’s which one still leaves you owning the organizational context neither construct was built to solve, a gap that shows up across AWS, Azure, and GCP alike once you line an LLM knowledge base up against raw RAG.

  • Bedrock Knowledge Bases, a RAG offering you can run fully managed or customer-managed.
  • Custom RAG pipeline, where you assemble your own ingestion, retrieval, and generation stack from services inside or outside AWS.
What it is Two RAG solution patterns inside Amazon Bedrock: managed/self-managed Knowledge Bases, or a fully custom pipeline
Key trade-off Speed and low maintenance (Knowledge Bases) vs. full architectural control (custom RAG)
Best for Knowledge Bases: greenfield projects on standard document sources. Custom RAG: non-AWS vector stores, bespoke retrieval logic, or graph-heavy use cases
Time to production Knowledge Bases: days. Custom RAG: weeks to months, plus ongoing operations
What neither solves Building and maintaining the ontology and cross-system context an agent needs to reason correctly

What are the options for deploying Bedrock Knowledge Bases for RAG?

Bedrock Knowledge Bases provide the basic infrastructure for retrieval, but you still choose between two operating models: Managed Knowledge Bases and Self-Managed Knowledge Bases. The choice comes down to how much freedom you want over the vector backend and how it’s implemented.

Managed Knowledge Base


A Managed Knowledge Base doesn’t require you to set up any vector store. It bundles built-in multimodal parsing, a vector embedding model, and a reranker you can configure or turn off.

You can choose the embedding model and decide whether reranking runs at all; Bedrock fully manages parsing and the vector store underneath. That’s a narrower set of choices than a hand-built pipeline, by design.

The managed option also ships direct integrations with S3, Confluence, OneDrive, Google Drive, and SharePoint, among others, and it manages the end-to-end ingestion pipeline for each of those sources.

Self-managed Knowledge Base


A Self-managed Knowledge Base comes in three flavors:

  1. Bring your own vector store or backend with Amazon OpenSearch Serverless, Aurora PostgreSQL with pgvector, or Neptune Analytics, among others. You decide how documents get chunked and vectorized.

  2. Use the Kendra GenAI index as the retriever, with support for hybrid and vector search.

  3. Pick a vector-less retrieval engine that reads structured data stores directly using NL2SQL against Redshift, SageMaker Lakehouse, and Glue Data Catalog.

Choosing Neptune Analytics over a pure vector store is really a choice between two retrieval philosophies, one Atlan’s comparison of vector databases against knowledge graphs for agent memory walks through in more depth, and the same architectural fork shows up again in Atlan’s own Neptune vs. data catalog comparison. If you need more flexibility than any of these three flavors offer, building a custom RAG pipeline is the next step.


What goes into building and operating a RAG pipeline?

A custom RAG pipeline means you choose your own vector data store plus the ingestion, chunking, parsing, embedding, and retrieval logic around it.

That’s the opposite extreme from managed Knowledge Bases, but you can also sit in the middle: use the Knowledge Bases retrieval mechanism while implementing your own reranking, context assembly, and generation pipeline on top of it.

A truly custom RAG pipeline is one where you control every architectural choice, including, but not limited to, the following.

  • Parsing, chunking, and embedding. Handle this with AWS services like Textract or third-party libraries like LlamaParse. You get direct control over how data gets chunked, what context rides along with each chunk, how chunks get organized for embedding, and which models generate the vectors.
  • Vector storage and indexing. Plenty of options exist both inside and outside AWS. Your search and query patterns should dictate the vector database, not the other way around. Amazon OpenSearch offers the most flexibility inside AWS; managed options outside it include Pinecone and Qdrant.
  • Retrieval mechanisms. These depend on the vector database you picked and the algorithm, space, and method behind your vector index. Using Neptune for graph traversal means deciding upfront whether the vector or the graph gets queried first, the kind of architectural fork Atlan’s agent memory research keeps running into across enterprise deployments.

Summed up: in a custom RAG pipeline, you own how knowledge gets in, how it gets indexed, and how it becomes retrievable when agents ask for it, including the MCP server layer many teams put in front of that retrieval logic once agents need governed access to it. The MCP architecture that exposes a retrieval pipeline to an agent is a separate design decision from the pipeline itself, and getting it wrong is a common source of the retrieval failures Atlan’s RAG accuracy research catalogs.

One more piece matters here. A RAG solution doesn’t only draw on non-parametric memory, the context pulled from vector or graph databases; it also draws on parametric memory, the LLM’s internal weights. An agent at work has to assemble and reconcile both, a distinction Atlan’s breakdown of agentic memory against vector databases treats as the real dividing line between “search” and “memory.” That’s why a custom RAG pipeline also puts context assembly and compilation squarely on you, built with any of the popular agent frameworks like LangGraph, CrewAI, or Strands.


Bedrock Knowledge Bases vs. build your own RAG pipeline: How do you choose?

Quick comparison: Bedrock Knowledge Bases vs. custom RAG pipeline


Comparing on Bedrock Knowledge Bases Custom RAG pipeline
Parsing, chunking, and embedding Managed option available, and you can customize the ingestion pipeline, but with a limited set of embedding models via Bedrock. Complete control over parsing, chunking, and embedding using models of your choice, not limited to Bedrock’s text embedding catalog.
Vector store and indexing Managed option needs no vector store choice; the self-managed version supports S3 Vectors, OpenSearch, PostgreSQL, and similar. Any vector store, index type, or retrieval pattern is supported. Most useful when you want non-AWS services in the mix.
Cost incurrence You pay for storage, embeddings, indexes, and queries, plus some under-the-hood operations costs for Knowledge Bases. You pay separately for compute, storage, and the engineering effort to build and maintain the pipeline. Worth it when your use case exceeds what the out-of-the-box options support.
Search and retrieval patterns Determined largely by the vector engine, algorithm, and index type tied to your chosen vector database. A bring-your-own approach lets you assemble exactly the search patterns your AI application needs.
Time and effort to production Usually days for greenfield projects, since managed ingestion and vector retrieval are largely pre-built in Bedrock Knowledge Bases. Usually weeks to months, since you build the pipeline from scratch, with ongoing operations and maintenance after launch.

Bedrock Knowledge Bases vs. custom RAG pipeline: Key limitations


Both options are viable for different organizations, but choosing one over the other won’t necessarily solve your organization’s context problem.

Knowledge Bases doesn’t solve it because the connector list for tools like Confluence and SharePoint is limited, and you’ll end up building your own past a certain point. The build-your-own RAG pipeline already requires you to bring your own connectors for semantic sources, so you either build them or rely on an external library.

Either way, it takes effort, and effort spent on connectors is effort not spent on the retrieval quality problems Atlan’s guide to evaluating RAG systems walks through.

On top of that, both systems require you to build an ontology on top of the context, more effort still, with its own infrastructure to maintain. AWS’s open-source ontology accelerator helps here, but it supports only Glue Data Catalog and JDBC connectors plus document uploads, a small slice of the organizational context agents in Bedrock actually need. The gap is the difference between an ontology you build once and one that stays current on its own, what Atlan calls an active ontology.

What makes things easier for agents is a ready-to-use enterprise context layer that connects to every enterprise system, builds a knowledge graph, maintains the ontology layer, and gives agents the features they need for governed knowledge retrieval. That’s precisely what Atlan offers. Here’s how Bedrock agents can put Atlan’s enterprise context layer to work.


How does Atlan provide enterprise context to Bedrock agents?

Atlan is the Context Layer for AI, built on the Context Lakehouse architecture that also underpins the broader agent context layer: assembling and organizing context from every key enterprise system in one place.

Instead of building your own connectors, Atlan provides pre-built ones and delivers the context you need through Atlan’s MCP server. When you’re running Bedrock AgentCore, an agent can make a tool call via AgentCore Gateway to reach Atlan directly, the same integration pattern Atlan’s guide to running enterprise agents on Bedrock covers end to end. Whether that call resolves through MCP or a direct function call is itself a design decision, one Atlan’s comparison of MCP against function calling breaks down for teams choosing between the two.

Atlan brings together knowledge not just from disparate systems but from disparate knowledge sources, which is why it works alongside Knowledge Bases and also works well if you’ve already built a custom RAG pipeline, treating those pipelines as both sources and targets.

Atlan brings a more curated, structured, and trustworthy view of context across the organization through four key constructs:

  • Enterprise Data Graph: the knowledge graph that pulls context from every system connector across your organization and captures the relationships between sources based on structured, trustworthy metadata.
  • Active Ontology: the semantic layer that captures organizational language through an official glossary, a list of domains, products, metrics, and relationships, built to the Open Semantic Interchange standard, and the same layer Atlan’s guide to semantic layers for AI agents covers in depth.
  • Context Engineering Studio: the interface for building Context Repos, running evaluations on them, and letting agents pull context from them at runtime.
  • Context Agents: AI teammates that take on the grunt work of organizing documentation, creating actionable knowledge, and making your organization’s data AI-ready.

Through Atlan’s MCP server, Bedrock agents, or agents on any other agentic platform, can search Atlan’s context layer for assets, structure, lineage, policy rules, domains, classification, tags, and data quality rules, and even run SQL against connected sources. Agents can write back to Atlan too, which keeps the context layer current instead of stale. That’s a different question from the one AWS Agent Registry answers: a registry entry confirms an agent exists, cleared review, and has a known owner. It says nothing about whether the business data that agent just retrieved is still correct, the exact gap Atlan’s context layer closes underneath it.

All told, Atlan’s context layer offloads the complexity of gathering, reconciling, and organizing context in one place, no matter which side of the managed-versus-custom line your RAG architecture sits on.


Real stories from real customers: MCP servers built on Atlan’s context layer

"Atlan captures Workday's shared language to be leveraged by AI via its MCP server. As part of Atlan's AI labs, we're co-building the semantic layer that AI needs."

Joe DosSantos, VP Enterprise Data & Analytics, Workday

"Atlan is much more than a catalog of catalogs. It's more of a context operating system...Atlan enabled us to easily activate metadata for everything from discovery in the marketplace to AI governance to data quality to an MCP server delivering context to AI models."

Sridher Arumugham, Chief Data & Analytics Officer, DigiKey


Choosing between Bedrock Knowledge Bases and a custom RAG pipeline

Amazon Bedrock Knowledge Bases come in two flavors: fully managed and self-managed. How much control you want over parsing, chunking, embedding, and vectorization decides which one fits.

Building a custom RAG pipeline outside of Knowledge Bases is the other option, and it means building the orchestration, storage, and compute components yourself, from scratch. The right call usually comes down to the vector search patterns, engines, databases, and methods your organization needs to support.

Neither option solves the underlying context problem on its own. What closes that gap is an agent context layer that connects to every key enterprise system, assembles and organizes their context in one place, and builds the ontology that humans and AI agents both rely on, regardless of which Bedrock construct sits above it.


FAQs about Bedrock managed knowledge base vs. custom RAG pipeline

1. What is the difference between a Bedrock knowledge base and custom RAG?


Bedrock Knowledge Bases is a managed service where you can spin up either Managed Knowledge Bases or self-managed Knowledge Bases, and in both cases Bedrock handles much of the heavy lifting in the context-ingestion pipeline. With custom RAG, you build your own pipeline, choosing chunkers, parsers, embedding models, vector databases, graph databases, and orchestration engines yourself.

2. Which vector stores does Amazon Bedrock Knowledge Bases support?


The list keeps expanding, but Amazon Bedrock Knowledge Bases currently support Amazon OpenSearch, S3 Vectors, Aurora PostgreSQL, Neptune Analytics, Pinecone, Redis Enterprise Cloud, and MongoDB Atlas.

3. Does a Bedrock managed knowledge base work with AgentCore?


Yes. Bedrock Managed Knowledge Bases connect to AgentCore Gateway through a native target type called Knowledge Base, alongside other target types like MCP servers, Lambda functions, REST APIs, and API Gateways.

4. Is a custom RAG pipeline more accurate than a managed knowledge base?


Not necessarily; it depends on the implementation. Managed Knowledge Bases handle document parsing, chunking, embedding, vector storage, and retrieval well out of the box. What they don’t offer is much flexibility in vector engines, search patterns, hybrid search, or RAG design. If you need that control, a custom RAG pipeline is where it lives.

5. How does the Atlan MCP server work with a Bedrock knowledge base?


Atlan’s MCP server works alongside a Bedrock Knowledge Base to give agents additional context. Knowledge Bases may hold some enterprise context, but Atlan’s context layer adds depth on any given topic, and an agent connects to both sources through MCP, orchestrating retrieval based on what it needs.


Sources

  1. Retrieve data and generate AI responses with Amazon Bedrock Knowledge Bases, AWS Documentation. https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html
  2. Build a managed knowledge base, AWS Documentation. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.html
  3. Build a knowledge base with vector stores, AWS Documentation. https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-build.html
  4. Build a knowledge base with an Amazon Kendra GenAI index, AWS Documentation. https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-build-kendra-genai-index.html
  5. Introducing Amazon Bedrock Managed Knowledge Base for faster, more accurate enterprise AI applications, AWS News Blog, 2026. https://aws.amazon.com/blogs/aws/introducing-amazon-bedrock-managed-knowledge-base-for-faster-more-accurate-enterprise-ai-applications/
  6. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, arXiv. https://arxiv.org/abs/2005.11401
  7. Strands Agents: Open Source AI Agent SDK for Python and TypeScript. https://strandsagents.com/
  8. aws/context-ontology-accelerator, GitHub. https://github.com/aws/context-ontology-accelerator
  9. Amazon Bedrock AgentCore, AWS. https://aws.amazon.com/bedrock/agentcore/
  10. Amazon Bedrock AgentCore Gateway: A secure AI gateway for agents, tools, and models, AWS Documentation. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway.html

Share this article

signoff-panel-logo

Atlan is the Context Layer for AI. It translates business knowledge, including data definitions, working procedures, and governance policies, into context AI can actually use. This knowledge lives in a single Enterprise Data Graph that every team and AI agent can reach.

In Atlan's AI Labs benchmark, adding this context improved AI's text-to-SQL accuracy by 38%.

Atlan is recognized as a Leader across multiple Gartner reports and Forrester Waves, and is trusted by over 400 enterprises representing $10T+ in market cap, including Mastercard, Workday, General Motors, CME Group, HubSpot, FOX, Virgin Media O2, and Elastic.

Bridge the context gap.
Ship AI that works.