‹ Tech stack

Vector search

pgvector

An extension for PostgreSQL that finds content by meaning instead of exact words, in the same database.

What it is

pgvector is an extension of the PostgreSQL database that adds search by meaning. It runs inside the same PostgreSQL database that holds your other data, so there is no separate system to run. Normal search looks for the words you typed. Search by meaning looks for ideas that match, even when the words differ.

It works with embeddings. An embedding is a list of numbers that captures what a piece of text is about, a bit like coordinates on a map of meaning. Texts with similar meaning end up close together, and pgvector finds the closest ones quickly.

So a customer who types get my money back can be pointed to your refund policy, even though the policy never uses those words.

How to use it for AI and automation

Build a searchable knowledge base

Split your documents into passages, turn each into an embedding and store them. When a question arrives, fetch the closest passages and give them to the AI as the source for its answer.

Draft support answers from past answers

Find earlier tickets and approved replies that resemble a new question, so a draft starts from what your team has already said well.

Find similar products

Compare product descriptions by meaning to suggest alternatives or to group items that belong together.

Detect duplicates

Flag content that is almost identical to something you already have, even when it was reworded.

Filter and rank together

Combine similarity with conditions like status, date or customer, so results are both relevant and permitted.

FAQ

pgvector: frequently asked questions

Is pgvector a separate database?

No. It is an extension of PostgreSQL and lives in the same database as your other tables, so your records and their embeddings are stored, backed up and secured together.

Does it replace normal keyword search?

Not entirely. Meaning-based search is strong for questions and vague wording, while keyword search is better for exact codes and names. Combining both often works best.

Is the answer always correct?

No. pgvector finds likely relevant passages, and the AI then writes from them. Results depend on the quality of your documents, and important answers should still have review.

Do we need a separate vector database?

For most business-sized collections, no. Very large or very high-traffic systems may eventually justify a specialized store.

What happens when our documents change?

The affected passages are re-processed and their embeddings updated, so searches reflect the current content.

Is our content sent anywhere to create embeddings?

Creating embeddings requires an embedding model, which may be hosted by a provider or run on your own infrastructure. We agree on this with you based on your privacy needs.

Need pgvector set up and run for you?

We install, secure and operate the stack. Start with a discovery call.