Home  ·  Blog  ·  AI & Automation
AI & Automation

What is a vector database? A plain-English guide for business owners

The part of an AI assistant that lets it find "money back" when a customer typed "refund". What a vector database does, which ones exist, and when you need one.

· 6 min read · By
Technician walking through a data centre aisle

Imagine a customer types "how do I get my money back?" into your website chat. Your policy document never says "money back". It says "refunds are processed within 7 working days of the returned item reaching our warehouse". An ordinary search for those words finds nothing. A good AI assistant finds the right paragraph instantly.

The part that makes this possible is usually a vector database. It sounds technical, and the maths behind it is, but the idea is easy to follow.

From words to meaning

An AI component called an embedding model reads a piece of text and turns it into a long list of numbers. You can think of those numbers as a position, like coordinates on a very large map of meaning. Texts that mean similar things end up close together. "Refund", "money back" and "return my payment" all land in the same neighbourhood, even though they share no words.

A vector database stores these positions for every passage of your documents, and it's built to answer one question very fast: which stored passages are closest to this new question?

Why AI assistants need it

When an assistant answers from your company's documents (the technique called RAG, explained in how to build an AI assistant on your company data), it can't send your entire library to the AI model with every question. It would be slow, expensive and confusing. Instead:

  1. The question is turned into numbers.
  2. The vector database finds the handful of passages closest in meaning.
  3. Only those passages go to the model, which writes the answer from them.

Meaning search plus keyword search

Meaning-based search is great for natural questions but can stumble on exact things: product codes, model numbers, names, GSTINs. That's why good systems use both: meaning-based search to understand the question, and normal keyword search to catch exact terms. Most modern vector databases support this combination.

Labels: the part that keeps secrets secret

Every passage stored in a vector database can carry labels: which document it came from, which department owns it, the date, the language, and who is allowed to see it. When someone asks a question, the search can be limited to passages that person is allowed to see.

This matters more than anything else in a business setting. If the HR salary policy and the public product FAQ sit in the same store without labels, a clever question from a customer could pull salary details into an answer. Telling the AI "don't reveal salaries" isn't enough; the passage should never be retrieved for that user in the first place. Our guide on AI chatbot security and guardrails covers this in depth.

Popular options

OptionGood fit when
PostgreSQL with pgvectorYou already use PostgreSQL and want one database for everything
Qdrant, Weaviate, MilvusYou want a dedicated, self-hostable vector database with strong filtering
ChromaPrototypes and smaller projects
PineconeYou prefer a fully managed cloud service
Elasticsearch or OpenSearchYou already run them for keyword search and want to add meaning search

For most small and mid-sized business assistants, the choice matters less than people think. Data quality, labels and testing matter more.

How to choose

  • Size: thousands of passages are easy for any option; hundreds of millions need careful planning.
  • Your existing stack: fewer new systems means less to maintain.
  • Where data must live: if your data should stay on your servers or in India, prefer self-hosting or a provider with a suitable region.
  • Filtering: check that permission labels can be filtered quickly on every search.
  • Cost: managed services charge for storage and usage; self-hosting costs server time and maintenance.

One question, end to end

Here's what happens inside a company assistant when a regional sales manager asks: "What discount can I give a distributor ordering 500 cartons?"

  1. The system knows who is asking: a sales manager in the West region.
  2. The question is turned into numbers by the embedding model.
  3. The vector database searches only passages labelled for sales managers and the West region, combining meaning-based and keyword search, so "500 cartons" and "distributor" both count.
  4. It returns the three best passages: the current distributor discount slab, the approval rule for orders above a certain value, and a note on festival schemes.
  5. The language model writes a short answer from those passages, naming the policy document and its date.
  6. If the manager had asked about another region's schemes, those passages would never have been found.

What it costs to run

For a typical business assistant with a few thousand documents, storage itself is cheap. The real costs are elsewhere: turning documents into numbers when you first load them and whenever they change, the server or managed service plan, and the time to keep documents current. Managed services charge by storage and usage; self-hosted options cost server time and someone to look after them. Our guide to AI automation costs in India puts this in context with the other monthly costs.

Questions to ask your developer

  • Which vector database will you use, and why that one for us?
  • How will permissions be stored and enforced on every search?
  • Will you combine keyword and meaning-based search?
  • How will updates and deletions flow from our documents to the store?
  • Where will the data be hosted, and how is it backed up and protected?

When you don't need one

If your assistant only needs a two-page FAQ and a price list, today's models can read all of it with every question. Skip the vector database, keep the setup simple, and add one when your knowledge grows or you need different access levels.

Keeping it healthy

  • Update on change: when a document changes, its passages must be replaced, or the assistant will quote the old version.
  • Delete properly: when a document is withdrawn, remove its passages too.
  • Re-process when you change embedding models: numbers from different embedding models aren't compatible, so switching means re-processing your documents.
  • Back it up and protect it like any other database holding company information.

Where this fits in a project

The vector database is one piece of an AI assistant, alongside the language model, your documents, the assistant's instructions and the guardrails. If you're deciding whether your project needs this approach at all, read RAG vs fine-tuning vs prompting. If you'd like it built, see our AI services.

FAQs

Is a vector database the same as a normal database?

No. A normal database finds records by exact values, such as an order number. A vector database finds text, images or other items by similarity of meaning. Many projects use both, and some normal databases, such as PostgreSQL with the pgvector extension, can do both.

Do I need a vector database for a small chatbot?

Not always. If your entire knowledge fits in a few pages, it can be sent to the AI model with each question. A vector database becomes useful when you have many documents, frequent updates or different access levels.

Can a vector database leak confidential information?

It can if access is not controlled. Store who may see each passage as a label, filter by it on every search, and protect the database like any other store of company data. Security guidance for AI applications now lists vector and embedding weaknesses as a specific risk.

Where should the vector database be hosted?

Wherever your data rules allow. Managed cloud services are easiest; self-hosting on your own servers or an Indian cloud region gives more control over where data sits.

Read next

Let's build something unforgettable.

From a 5-page launch to a multi-region growth engine — we plug in, ship fast, and stay till the numbers move.