Stepthrough Start free

What is a vector database?

Quick answer

A vector database stores embeddings, the numeric fingerprints of text or images, and finds the ones closest in meaning to a question. AI tools use it to pull the most relevant passages from a large collection of documents before writing an answer.

Last updated

Take the free module →Module 15 of the free AI for Customer Support course, about 14 minutes. No account needed.

Updated · By Robert Breen

Why it matters for a small business

A spreadsheet or regular database is great when you know exactly what you are looking for: the row where Status is Draft, every deal at Fernhill Lawn Care. A vector database answers a fuzzier question: which of these thousands of notes, emails or manuals are about something like this? That is the question an AI assistant needs answered before it can respond from your own material.

Most small businesses do not need one at the start. A system prompt, a short knowledge file or a Google Sheet covers a lot. A vector database becomes worth it when your reference material is too big to paste, changes often, and has to be searched by meaning, such as a growing library of support answers or past job notes.

In a real lesson: Make Your Handbook Searchable for an AI Helpdesk using Pinecone + n8n

The Pinecone + n8n load lesson sets one up from scratch. Cedar Ridge Partners, a made-up consulting firm, wants staff to stop emailing operations the same handbook questions. You create a Pinecone index named stepthrough-tests for text-embedding-3-small, with Dimension 1536 and the cosine metric, on the free Starter plan's Serverless, AWS, Virginia (us-east-1) settings.

Then an n8n workflow fills it: Download file from Google Drive, a Default Data Loader set to Binary, a Recursive Character Text Splitter, Embeddings OpenAI and the Pinecone Vector Store node in Insert Documents mode. One run stores the handbook as 38 records, each a chunk of text with its numbers and page number.

That is the difference from a spreadsheet. Nobody typed "desk chair" anywhere, yet in the chatbot lesson a question about a desk chair for home finds the home office policy on page 9, because the database matches meaning.

Practice copy of an n8n workflow after a run: When clicking 'Execute workflow', Download file from Google Drive and the Pinecone Vector Store node showing 38 items, with Embeddings OpenAI, Default Data Loader and Recursive Character Text Splitter underneath
Practice copy of an n8n workflow after a run: When clicking 'Execute workflow', Download file from Google Drive and the Pinecone Vector Store node showing 38 items, with Embeddings OpenAI, Default Data Loader and Recursive Character Text Splitter underneath

Try this lesson free or read the step-by-step guide.

Common confusions

Vector database vs Google Sheets

Google Sheets stores rows and columns you look up by exact values. A vector database stores meaning and finds near matches. Many automations use both: the sheet for records, the vector store for searching text.

Vector database vs agent memory

Agent memory like n8n's Simple Memory keeps the recent conversation. A vector database holds a large, lasting collection of documents to search. One remembers the chat; the other is a library.

Tips

  • Start with a knowledge file or a pasted reference; move to a vector database only when the material is too big or changes too often.
  • Plan how documents get updated or removed, or the store will keep returning stale answers.

More AI basics terms

Where you use it: free lessons

More free tutorials

Frequently asked questions

Does n8n support vector databases?
Yes. n8n has vector store nodes for several databases, plus a simple in-memory option, and embeddings nodes to go with them. You connect them to an AI Agent so it can search your documents.
Is a vector database the same as a regular database?
No. A regular database finds exact matches in structured fields. A vector database finds items with similar meaning, which suits search over text.

All AI glossary terms, A to Z · Free prompt templates