How It Works

Vector Databases: A Plain-English Guide

What they are, how they differ from normal databases, and why they're essential for AI knowledge systems β€” explained without the maths.

9 min read June 2026 Token by Token

What a vector database really is

If you've been reading about AI for your business, you've probably seen "vector database" thrown around like it's a must-have. Here's the honest version: a vector database is a specialised tool for finding similar things, not exact things. That's it. Not magic. Not a replacement for your regular database. Just a very fast way to ask, "What else is like this?"

Your existing SQL database is brilliant at finding exact matches. Customer ID 4827? Found it in milliseconds. Every invoice from March 2023? Done. But ask it to find "customers who sound frustrated in their support emails" and it'll stare back at you blankly. A vector database can answer that question β€” not because it understands frustration, but because it can find text that mathematically sits near other frustrated text in a very weird, very high-dimensional space.

"A vector database is not magic. It's a very fast, very patient librarian that doesn't read the books β€” it maps them by smell, texture, and the shape of their sentences, then finds the ones that feel closest to what you handed it."

β€” Working definition, Token by Token

Why your normal database can't do this

Normal databases store things as rows and columns, like a spreadsheet. Each cell has a clear meaning: this column is "price," that one is "date." Searching means comparing exact values or ranges. It's tidy. It's fast. It's completely useless for "find me something conceptually similar."

Think of it like a messy bookshelf versus a library catalogue. Your SQL database is the catalogue β€” it knows exactly where each book lives, but only by title, author, and Dewey decimal number. A vector database is the messy bookshelf where you've arranged books not by category, but by how alike they feel. The cookbook about regional Italian pasta ends up near the travel memoir about Tuscany, even though a normal catalogue would file them continents apart.

For Australian small businesses, this matters because your normal tools β€” MYOB, Xero, a CRM like HubSpot β€” all run on exact-match logic. They're not built to find "invoices that look suspicious" or "customer complaints that mention the same vague issue." That's the gap a vector database fills.

Vectors: points in space, not rows in a table

Here's where most explanations go off the rails with maths. Let's stay grounded.

When you feed a sentence into an AI model, it gets converted into a list of numbers β€” usually 768 or 1,536 of them. That list is called a vector. Each number represents some feature the model has learned to detect: tone, topic, word choice, sentence structure, even sentiment. The model doesn't tell you what each number means β€” it's learned those relationships during training on billions of examples.

Now imagine each vector as a point in space. A 768-dimensional space, sure, which is impossible to visualise, but the maths works the same as if it were two-dimensional. Points that are close together in this space represent text that is semantically similar. "The plumber didn't show up on time" sits near "The tradie was two hours late" and far away from "Q3 revenue was up 14 percent."

The vector database doesn't store the original sentence in any meaningful way. It stores the point. When you search, you convert your query into a point too, and ask the database: "What are the closest points?"

Real-world example: mortgage broker

A mortgage broker in Brisbane has 3,000 client emails going back five years. She wants to find every conversation where clients mentioned "stress" or "overwhelmed" β€” not just emails with those exact words, but ones where the tone matched. A vector database can surface an email saying "I'm not sure how we're going to manage the repayments" even though it never uses the word "stress." Her normal email search in Outlook? It misses it entirely.

Nearest neighbour search explained

The core operation of a vector database is called nearest neighbour search. Plain English: given one point, find the other points that are closest to it.

In two dimensions, this is easy. You could draw it on paper. In 768 dimensions, it's impossible for a human to visualise, but the computer handles it with the same geometric principles. Distance is calculated using a formula β€” usually cosine similarity or Euclidean distance β€” which boils down to "how far apart are these points?"

Cosine similarity is the most common choice for text. It measures the angle between two vectors rather than the absolute distance. Two short sentences about the same topic can score highly on cosine similarity even if one is twice as long as the other, because the angle between them is small. This matters for search quality β€” you want "similar meaning," not "same length."

The catch: in high-dimensional space, "distance" gets weird. Every point starts to look roughly equidistant from every other point, a phenomenon called the curse of dimensionality. Vector databases use clever indexing structures to avoid actually computing the distance to every single point, which would be far too slow at scale.

The pipeline: embedding β†’ store β†’ search β†’ retrieve

If you build something with a vector database, you'll hit this pipeline. Here's what each stage actually involves, with rough time and cost estimates for a small business.

1. Embedding (the conversion)

You send your text to an embedding model. This converts it into a vector. Common models include OpenAI's text-embedding-3-small or text-embedding-3-large, and open-source options like all-MiniLM-L6-v2.

Cost: OpenAI charges roughly US$0.02 per million tokens for the small model and US$0.13 per million for the large one. For a typical SMB with 50,000 documents averaging 500 words each, you're looking at under AU$50 to embed everything once. Self-hosted open-source models cost compute time instead β€” maybe a few hours on a decent laptop.

Time: A few hours for initial batch embedding. Ongoing: milliseconds per new document.

2. Store (putting vectors in the database)

The database stores the vector plus some metadata β€” usually the original text ID, source, date, whatever you need later. Some tools let you store the original text in the same system; others expect you to keep it elsewhere and just use the vector database for search.

3. Search (the query)

Your user asks a question. You embed the question into a vector using the same model you used for your documents. This is critical β€” mixing embedding models is like trying to use a map from Melbourne to navigate Sydney. The database returns the closest vectors, typically the top 3 to 10.

4. Retrieve (getting the actual answer)

The vector database gives you IDs. You look up the original documents using those IDs. This is where many first-time builders trip up β€” they expect the vector database to return paragraphs of readable text, but it mostly returns pointers. You need a second system (your existing database, a file store, whatever) to hold the actual content.

Real-world example: IT consultancy

An IT consultancy in Perth built an internal knowledge base from 800 technical runbooks. They embedded everything into Pinecone, built a simple Slack bot, and now their junior engineers can ask "How do I fix the VPN issue where the certificate looks valid but the client rejects it?" The bot retrieves the three most similar runbooks. Total build time: two weekends. Monthly running cost: about AU$80. Time saved per support ticket: 15–20 minutes.

Your options, compared in plain English

There are more vector databases than anyone needs. Here's the landscape as of 2026, with the honesty you won't find on vendor homepages.

Pinecone

Fully hosted. You don't manage servers. You send vectors over HTTPS and get results back. Very easy to start, scales without ops work. The pricing escalates fast once you pass the free tier β€” think hundreds of dollars per month at moderate scale. Best for teams with no DevOps capacity who need reliability without thinking about it.

Weaviate

Open-source core with a hosted option. More flexible than Pinecone β€” you can run it yourself, modify behaviour, and it includes some built-in embedding and generative features. Steeper learning curve. The hosted version is cheaper than Pinecone at scale, but you need to understand its schema system or you'll hate it.

Qdrant

Written in Rust, fast, solid open-source option with a hosted cloud. Good middle ground: easier to self-host than Weaviate, cheaper than Pinecone, and handles hybrid search (vector + keyword) well. Active development, decent documentation. A strong choice if you're comfortable with Docker.

Chroma

The "get something working in an afternoon" option. Designed for local development and small projects. Stores vectors in files or SQLite by default. Embeddings can happen automatically inside Chroma if you want. Fine for prototypes and internal tools under 100,000 documents. Don't use it for production loads β€” it's getting better, but it isn't built for high concurrency.

pgvector

A Postgres extension. If you already run Postgres for your application, this is often the pragmatic choice. You keep one database, one backup strategy, one set of credentials. Performance is fine up to a few million vectors; beyond that you need tuning and maybe partitioning. The big win is simplicity: no new infrastructure to manage.

Milvus

Enterprise-grade, built for massive scale. Unless you're dealing with billions of vectors, you probably don't need it. The architecture is more complex β€” separate services for coordination, data nodes, query nodes. Great if you have a dedicated platform team. Overkill for a typical Australian SMB.

Option Best for Self-host effort Typical monthly cost (SMB scale)
Pinecone Zero-ops, fast start None AU$100–400
Weaviate Flexibility, hybrid search Medium AU$60–200 (hosted)
Qdrant Self-hosters who want speed Low–medium AU$40–150 (hosted)
Chroma Prototypes, small internal tools Low Free (local) or AU$30–80
pgvector Teams already on Postgres Low (extension) Your existing Postgres cost
Milvus Massive scale, dedicated ops High AU$200+

When you actually need a vector database

Let's kill the hype. You do not need a vector database for:

You might need one when:

Real-world example: tradie business

A plumbing business in Newcastle has 12 years of job notes in Word docs and PDFs. Their office manager used to search filenames and hope. Now they embed the text, store vectors in pgvector (they already run Postgres for job scheduling), and the field staff can ask "Has anyone fixed a temperamental Rinnai Infinity in a two-storey house?" The system finds three similar jobs from 2019 and 2022. Setup took a weekend. Cost: zero extra infrastructure.

Memory vs persistence: the trade-off nobody talks about

Some AI frameworks β€” particularly LangChain and LlamaIndex β€” let you store vectors "in memory" using simple Python lists or FAISS indexes. This is fine for demos and one-off scripts. The data disappears when the script ends. No backups. No sharing between users. No persistence.

A real vector database is persistent. It writes to disk. It handles concurrent access. It has backups, replication, and recovery. The trade-off is complexity and cost.

For a small business, the decision is usually:

The danger is building a prototype in memory, showing it to the team, and then discovering the "real" version takes ten times longer because persistence, auth, and backups weren't part of the initial plan.

Approximate nearest neighbour: the cheat code

If you have a million vectors and you want the true closest match to a query, you'd theoretically need to compare your query against every single vector. That's a million distance calculations. Too slow.

Enter approximate nearest neighbour (ANN) algorithms. These build clever data structures β€” indexes like HNSW, IVF, or LSH β€” that let the database skip most vectors and only check the ones likely to be close. The result isn't guaranteed to be the absolute closest, but it's usually close enough, and the speedup is enormous: from minutes to milliseconds.

Every production vector database uses ANN internally. The trade-off is tunable: you can ask for more accuracy at the cost of speed, or vice versa. For most business use cases, the default settings are fine. Don't let the acronym scare you β€” it's just a shortcut that works well enough, like using a map instead of surveying every metre of terrain yourself.

What it actually costs

Costs split into three buckets: embedding, storage, and compute.

Embedding: OpenAI's small model is roughly AU$0.03 per million tokens. A 500-word document is about 700 tokens. So 10,000 documents costs under AU$1 to embed once. Self-hosted models cost electricity and hardware time instead. If you're embedding continuously β€” say, every customer support ticket in real time β€” the cost is negligible per ticket but adds up over a year.

Storage: Vectors are dense number lists. A 768-dimensional vector at 32-bit precision is about 3 KB. A million vectors is ~3 GB. Hosted vector databases charge by stored dimension-count or by capacity units. Pinecone's standard tier runs roughly AU$70 per month for a modest collection. pgvector on your existing Postgres server adds effectively zero marginal storage cost.

Compute: Self-hosting means a server running 24/7. A modest VPS (4 vCPU, 8 GB RAM) costs AU$40–80 per month and can handle pgvector or Qdrant for a small business workload. Hosted services include compute in their pricing. The real compute cost often isn't the database β€” it's the embedding model, especially if you call OpenAI's API for every query.

Total realistic SMB budget: AU$50–150 per month for a hosted setup, or AU$40–100 for self-hosted plus your time. The cheapest option is pgvector on your existing Postgres instance, which might add nothing to your bill.

What goes wrong (reality check)

Vector databases are powerful but they fail in specific, predictable ways. Here's what to watch for.

Dimension mismatch

You embed documents with OpenAI's text-embedding-3-large (3,072 dimensions) but your query with text-embedding-3-small (1,536 dimensions). The database throws an error, or worse, silently returns garbage because the vectors are incompatible. Always use the same model for indexing and querying. Document this choice where your future self will find it.

Stale embeddings

You update a document but forget to re-embed it. The vector still represents the old version. Your search finds the document, but the retrieved content doesn't match what the vector promised. This is a maintenance burden most teams underestimate. You need a pipeline β€” even a simple cron job β€” that re-embeds changed documents.

Scaling surprises

What works fine for 10,000 vectors crawls at a million. ANN indexes that build in minutes suddenly take hours. Query latency jumps from 50 ms to 5 seconds. The database that felt "free" on your laptop needs dedicated memory and CPU. Test with realistic data volumes before committing to an architecture.

Vendor lock-in

Pinecone's API is not Weaviate's API is not Qdrant's API. If you build deeply against one vendor's quirks, switching later means rewriting your data pipeline. pgvector has the weakest lock-in because it's just Postgres, but even there, tuning and index choices don't transfer cleanly to other systems. If you're experimenting, favour tools with simple export formats.

The "found something similar" trap

Similarity search finds things that are like your query. It does not guarantee correctness. A vector database might return a policy document from 2019 as "similar" to a question about current pricing, even though the pricing has changed twice since. You still need human judgement, version control, and freshness checks. Treat vector search as a suggestion engine, not an authority.

What it actually takes to build this

Let's strip away the conference-talk optimism. Here's what a typical Australian small business needs to get a vector search system running usefully.

Skills: Someone who can write Python or Node.js, understands your existing data, and is comfortable with APIs. You don't need a machine learning PhD. You do need someone who can debug why the same sentence returns different vectors on Tuesday versus Wednesday (hint: usually a model version change).

Time: A first prototype in 1–2 days if you use a hosted service and follow a tutorial. A production-ready system with error handling, monitoring, and re-embedding pipelines: 2–4 weeks of part-time work. Integration with your existing apps β€” adding search to your CRM, building a Slack bot, whatever β€” adds another 1–2 weeks.

Data prep: This is where most projects stall. Your documents are probably PDFs, Word files, emails, scanned images, and database exports. You need to extract clean text first. A tool like unstructured or pymupdf helps, but plan for a day of fighting formatting edge cases. That "12 years of job notes" sounds great until you discover 40% are scanned images with no OCR.

Ongoing maintenance: Re-embedding changed documents, monitoring query latency, updating the embedding model every year or two as better ones release, and handling the inevitable "why didn't it find this?" complaints from users. Budget 2–4 hours per month once it's running.

Building a vector search system and hitting walls?

I've built RAG and knowledge systems for mortgage brokers, accountants, tradespeople, and IT consultancies. If you're stuck on data prep, model selection, or making the thing actually find what it's supposed to β€” get in touch.