Do you need a vector database for RAG? Often, no
When a small corpus fits in the prompt, when keyword or hybrid search is enough, and which managed AWS options to use before you run your own vector database.
Westerwick5 min read

On this page
Ask how to build an AI assistant that answers from your own documents and you'll soon hear "you'll need a vector database", a specialised store that finds text by meaning rather than exact words. Sometimes that's right. But for many mid-market document sets it's more machinery than the problem needs, and the cheaper options have improved sharply in the last year.
This article sets out when you can skip the vector database, when plain search does the job, and what to use when you do need one.
First, what the vector database is for
Retrieval-augmented generation (RAG) means the AI looks up relevant passages from your documents and answers from them, rather than from memory. The vector database is one way to do the "look up" step. It isn't the goal. The goal is that the right passage reaches the model, every time, at a sensible cost.
So the real question is: how big is your document set, and how do people search it?
When the whole corpus fits in the prompt
If your documents are small enough, you don't need retrieval at all. Anthropic's guidance is direct: "If your knowledge base is smaller than 200,000 tokens (about 500 pages of material), you can just include the entire knowledge base in the prompt"1. A token is roughly three-quarters of a word.
That ceiling has risen. Claude Opus 5.5 on Amazon Bedrock has a context window, the amount of text it can read in one request, of 1M tokens2. Sending the same documents every time sounds expensive, but prompt caching lets the model reuse text it has already read; Anthropic reported it "reducing latency by > 2x and costs by up to 90%"1.
This works well for a policy manual, a product catalogue or a set of standard operating procedures that changes monthly, not hourly. It stops working when:
- the document set keeps growing past what fits in a request;
- query volume is high, because you pay for every token you send on every call;
- different users may only see different documents, which is hard to enforce if everything goes into one prompt.
When keyword or hybrid search is enough
Plenty of business questions contain exact terms: an invoice number, a product code, an error message, a clause reference. Meaning-based search can blur these. Classic keyword ranking (BM25) "uses lexical matching to find precise word or phrase matches"1, which is exactly what you want for "What does error E-4012 mean?".
Hybrid search runs both and merges the results. In Anthropic's tests, adding contextual keyword search to contextual embeddings cut retrieval failures from 5.7% to 2.9%, and adding a reranking step brought them to 1.9%1. The lesson isn't that vectors are useless. It's that retrieval quality comes from combining methods and testing them on your own questions, not from the type of database.
If you need vectors, use a managed store
Past a few hundred pages, or with many users and changing documents, embeddings-based retrieval earns its place. Even then, running your own vector database is rarely the first step on AWS.
- Amazon Bedrock Knowledge Bases handles ingestion, chunking and retrieval for you. Its cost "can vary based on the usage of the knowledge base and additional services such as Amazon OpenSearch Serverless"3, so the vector store you pick behind it matters.
- PostgreSQL with pgvector. If you already run Postgres on Amazon RDS, the pgvector extension adds vector search to a database you already pay for. Costs are the familiar ones: "database instance types, storage, data transfer, and backups"3.
- Amazon S3 Vectors became generally available in December 2025. AWS says it "reduces the total costs to upload, store, and query vectors by up to 90%" and "integrates with Amazon Bedrock Knowledge Bases"5.
What it costs, and why the old floor changed
A common objection to managed vector search was the minimum bill. For OpenSearch Serverless "Classic" collections, AWS still says "You will be billed at least for a minimum of 2 OCUs"4, where an OCU is a unit of compute billed by the hour. At the US East list price of USD 0.24 per OCU-hour4, that floor adds up whether anyone searches or not.
The newer collection type removes it: "There is no minimum OCU requirement - Indexing and Search OCUs scale to zero after 10 minutes of inactivity"4. For an internal assistant used in office hours, that changes the maths.
Cheap storage doesn't make everything cheap, though. AWS's own worked example, 100 million vectors with a million searches a month in US East, comes to USD 654.88 a month, and most of that is search compute rather than vector storage4. Most mid-market document sets are a small fraction of that size, but the pattern holds: model your query volume, not just your storage.
Doing this from South Africa
Workloads in the Africa (Cape Town) Region can use Bedrock through global cross-Region inference, which AWS says supports "Amazon Bedrock prompt caching, batch inference, Amazon Bedrock Guardrails, Amazon Bedrock Knowledge Bases, and more"6. AWS also says "data at rest—including logs, knowledge bases, and stored configurations—is designed to remain within your source Region", while the model call itself may be processed elsewhere6.
AWS advises checking whether this meets your obligations under POPIA6. We'd add: get that confirmed by your privacy adviser before personal information goes into any knowledge base. S3 Vectors launched in 14 Regions5; check the current Region list before assuming it's available in Cape Town.
Start with the smallest thing that finds the right passage. Add machinery only when your own test questions show you need it.
What to do next
- Measure your document set. Count pages and estimate tokens. Under about 500 pages and fairly static? Try putting it all in the prompt with caching first.
- Write 30 real questions your staff ask, with the correct answer and source for each. This is your test set for every option.
- Try keyword or hybrid search before paying for a dedicated vector store, especially if your questions contain codes, names or numbers.
- If you need vectors, start managed. Bedrock Knowledge Bases on a scale-to-zero or S3 Vectors store, or pgvector in a Postgres you already run.
- Model cost on query volume, and set a budget alert before launch.
For how this compares with training a model on your documents, see RAG vs fine-tuning for a private knowledge base. To see retrieval with citations working, try our Ask demo.
Sources
- 1.Introducing Contextual RetrievalAnthropic · 19 September 2024
- 2.Claude Opus 5.5 model cardAmazon Bedrock User Guide
- 3.Cost comparisons and considerationsAWS Prescriptive Guidance
- 4.Amazon OpenSearch Service PricingAmazon Web Services
- 5.Amazon S3 Vectors is now generally available with 40 times the scale of previewAmazon Web Services · 2 December 2025
- 6.Scale AI in South Africa using Amazon Bedrock global cross-Region inference with Anthropic Claude 4.5 modelsAWS Machine Learning Blog · 30 January 2026


