What a vector database is and when you really need one
Once your documents have become embeddings, you need somewhere to store them and query them. That is what a vector database does: it receives the question turned into numbers and returns the pieces of document that are the closest match.
There are dedicated products and extensions to traditional databases. For many small and medium-sized businesses (SMBs) the second route is enough: if you already have a database, you can often add vector search without a new system to maintain.
An example in an SMB
A payroll and employment consultancy has years of circulars and internal opinions. It splits them into paragraphs, creates the embeddings and saves them in a vector database. When a colleague asks a question, the internal assistant retrieves the right paragraphs and answers by quoting them.
The most common mistakes
- Choosing a complex tool for a few thousand documents, when a simple solution works perfectly well.
- Not storing the original text and the source together with the vector: you then can't tell where the answer comes from.
- Neglecting permissions: if a document is confidential, it must not end up in everyone's answers.
- Splitting documents into pieces that are too short or too long without testing: this choice has a big effect on what the assistant manages to find.
Why it matters to you
The vector database is the part that stays switched on every day once the assistant is in production. Who hosts it, where the data sits, who does the backups and how you delete a document that must no longer appear are questions to put to the supplier before you start, not after.
All the words of AI, explained simply, are in the glossary.
Frequently asked questions
Do I need a vector database to use ChatGPT in my business?
No. You need one if you want to build an assistant that answers from your own documents using RAG.
Can it run on my own servers?
Yes, many vector databases can be installed locally, so your documents stay inside the company.
What happens when I delete a document?
It has to be removed from the vector database too, along with all its pieces. If your process doesn't cover this, the assistant keeps quoting a text that no longer exists in your business.
Read next
What an embedding is and why it finds things by meaning
An embedding is a piece of text turned into a list of numbers that represents its meaning, so that texts with similar meanings get numbers that sit close together.
GlossaryWhat is RAG: AI that answers from your documents
RAG (Retrieval Augmented Generation) is a technique where, before answering, the AI searches your documents for the useful passages and uses them as the basis for its answer.
GlossaryWhat local AI is and when to keep it in-house
Using AI locally means running the model on your company's own computers or servers, instead of through a vendor's cloud service, so that your data stays inside the company.
GlossaryWhat a knowledge base is and why AI needs one
A knowledge base is the organised set of your company's information, such as FAQs, procedures, product sheets and terms, from which an AI assistant takes its answers, kept up to date by someone responsible for it.
Want to understand what your business really needs, without the jargon? Let's talk.
Text and graphics created with the support of AI. Method and content are AIR's.