Vector Databases for Business Search: When You Need One

Vector databases for business search help when wording differs from your documents. See when Postgres full text is enough and how to test before you build.

11 min read
Two colleagues in plain knit tops sorting blank sheets of paper into piles at a wooden table beside an open card index drawer, with plain grey archive boxes on shelves behind them, illustrating vector databases for business search

Vector databases for business search solve one specific problem: finding documents by meaning when people and documents use different words. Most business search problems are smaller than that. If staff look things up by contract number, supplier name or exact phrase, an ordinary query or Postgres full text search already works, and a new system adds cost, upkeep and another place for confidential data to leak from. This guide gives Australian product owners and development leads the decision inputs, failure modes and acceptance gate to test first.

Our guide to an AI chatbot for a business website covers content small enough to skip retrieval, and this article starts where that one stops: documents too large to paste into a prompt. Matching that must run on a phone, against items a user has taught the app, is covered in the on-device AI guide for mobile apps.

Key Takeaways

  • Try plain queries and Postgres full text search first, because they handle exact terms, names, codes and phrases.
  • A vector database earns its place when people use different words from your documents and a test on real queries shows full text search missing the answer.
  • Keep vectors in your existing Postgres database until a measured limit forces a move.
  • Apply permissions inside the search query, never after results return.
  • Accept the system only against a fixed set of real queries, with a pass mark agreed in advance.

What a Vector Database Does and Does Not Do

A vector database stores embeddings and returns the items closest in meaning to a query. An embedding is a list of numbers produced by a model so that texts with similar meaning sit near each other. A search for "staff who leave without notice" can then surface a policy titled "abandonment of employment", which keyword matching misses because the two share no words.

Some vector databases are separate products. Others extend a database you already run, such as pgvector for Postgres, which supports exact and approximate nearest neighbour search. Closest is not the same as correct: nearest neighbour search always returns something, even when nothing relevant exists, while keyword matching returns nothing.

What Plain and Full Text Search Already Cover

Postgres full text search covers more business search than most teams expect. The full text search built into PostgreSQL normalises word forms so that "satisfies" and "satisfy" match, drops stop words and ranks results by relevance, while, as the documentation notes, plain LIKE and ILIKE matching has no linguistic support, no ranking and no index support. Dictionaries add synonym and thesaurus rules, and GIN indexes, the documented preferred index type, keep queries quick. A synonym list kept by someone who knows the business vocabulary often closes gaps that teams assume need embeddings.

Decision Guide: When Vector Databases for Business Search Make Sense

Four inputs decide the answer: how users word their queries, how the documents are worded, how many documents there are, and who may see which. Read these situations in order and stop at the first one that fits.

  • Exact identifiers and structured fields - Use ordinary indexed queries. Reference numbers, dates and customer names need exact matching, not similarity.
  • Consistent vocabulary, moderate volume - Use full text search with a GIN index and a synonym dictionary, and measure it before deciding it is not enough.
  • Different words for the same idea - Add vectors inside your existing database. Staff describe a problem in their own words and the documents use formal terms.
  • Exact terms and meaning both matter - Run a full text query and a vector query, merge the two ranked lists, and keep exact fields as hard filters.
  • Measured limits on your current database - Consider a dedicated vector database only when tests on your own data show recall, speed or index build time missing the target after tuning.

Start With Postgres Before Adding a New Database

A vector extension in your existing Postgres database is the lowest-risk first step. By default pgvector performs exact search, which gives perfect recall, and an approximate index (HNSW or IVFFlat) trades some recall for speed, so results differ once it is added. That gives you a free test: run your query set with exact search, add the index, and compare. The gap is the recall you gave up, measured on your own data. Check that your embedding model's output size fits, because pgvector indexes its standard vector type up to 2,000 dimensions.

Filters and Permissions Decide the Design

Permission filters can break approximate search. In pgvector the filter is applied after the index is scanned, so if a condition matches 10 percent of rows and the HNSW search list size stays at its default of 40, only about 4 rows will match on average. A restricted user then sees fewer results than expected, and recent versions offer iterative index scans to scan further when needed.

Multiple tenants add a second risk. The same documentation says sharing an approximate index between tenants lets one tenant's vectors affect recall and speed for others, and it recommends list partitioning or separate tables. Our guides to SaaS tenant data isolation and SaaS roles and permissions cover the wider design.

OWASP's entry on vector and embedding weaknesses lists cross-context leaks in shared vector stores, embedding inversion and data poisoning, and recommends permission-aware stores, logical partitioning and immutable retrieval logs. Because embeddings can leak source information, classify the vector table like the documents it came from.

Where the Embedding Model Runs Matters in Australia

Creating an embedding sends document text to a model, so its location and terms are part of your privacy position. The OAIC says privacy obligations apply to personal information entered into an AI system, and it advises minimising that information and completing a privacy impact assessment (OAIC guidance on AI products). Decide which documents are indexed at all, and check where the call runs against our guide to SaaS data residency for Australian customers.

Failure Modes to Plan For

  • Stale vectors - An edited or deleted document leaves old vectors behind, so search returns removed content. Store the source ID and version with every chunk and check vector counts against live documents.
  • Model changes - Vectors from different embedding models are not comparable, so a model change means rebuilding every vector. Record the model name beside each one.
  • Plausible nonsense - Choose a minimum similarity from your test set and show "no good match" below it.
  • Poor chunk boundaries - Splitting can separate a table from its heading. Test chunk sizes against real queries.
  • Poisoned or hidden content - OWASP describes hidden text inside documents that changes system behaviour, so validate sources before indexing.

A Measurable Acceptance Gate

Search is accepted when a fixed test set passes, not when a demo looks good. For each real query, record the documents a knowledgeable person says should come back.

  • Baseline - Run the set against full text search first and record precision and recall, meaning how many returned results are right and how many right documents were found. Decide which miss costs more, since paralegals and similar professional searchers accept lower precision for high recall.
  • Pass mark - Agree it with the business owner before testing, for example the right document in the first five results for nine of every ten queries.
  • Permission test - Run the queries as users from different groups. Any restricted document returned to someone who may not see it fails the gate.
  • Human review - A named reviewer checks every failed query and a sample of passed ones each week, and adds each reported miss to the test set.

Keeping Running Costs Predictable

Cost comes from re-embedding chunks after every edit or model change, storage that grows with chunks and dimensions, index memory, and one embedding call per search. Re-embed only changed chunks, set a monthly spend limit on the embedding service, cache repeat queries and index only content people search.

A Sequence That Keeps the Decision Honest

  1. Collect real queries and write down the right answers, then record a baseline with ordinary queries and full text search.
  2. Name each failure and its cause, such as vocabulary or spelling.
  3. Fix the cheap causes first with a synonym dictionary and field weighting.
  4. Add vectors in the existing database for what remains, with permission filters in the same query.
  5. Run the gate and review the misses with a person.
  6. Move to a dedicated vector database only if the gate fails at real volume after tuning.

If the search will sit inside a larger product, the AI-powered platform options we build include retrieval grounded in a company's own knowledge base.

Related Resources

Common Questions About Choosing a Search Layer

1. Do I need a vector database for company intranet search?

Usually not at first. Postgres full text search with a synonym list is likely enough for titles, names, codes and phrases, so add vectors only when a test on real queries shows documents missed because of different wording.

2. Can Postgres handle vector search, or do I need a separate database?

Postgres can handle it with the pgvector extension. Consider a separate database only when your own tests show recall, speed or build time missing the target after tuning.

3. What is the difference between full text search and vector search?

Full text search matches the words in a query after normalising word forms. Vector search compares embeddings to match meaning, so it finds documents that share no words with the query, but it may return plausible results when nothing is relevant.

4. How do I keep one team's documents out of another team's results?

Apply the permission rule inside the search query, store access data with each chunk, and partition tables or indexes where tenants must stay separate. Then test as users from several groups and fail the release on any single leak.

Prove Plain Search Fails Before Buying More

Collect the questions staff actually ask this week, run them through the search you already have, and let the failures decide whether vectors are worth adding.

Ready to build what is next?

Talk to our Melbourne engineering team about modernising your systems or shipping your next product.