A Beginner’s Guide to Vector Search

Vector search is having a moment. Every AI application seems to need it. But what is it really, and do you actually need it?

What Is Vector Search?

At its core, vector search is about finding similar things.

Instead of searching for exact keyword matches, you convert data (text, images, audio) into vectors—lists of numbers that represent meaning. Then you find vectors that are close to each other in space.

Example: The vectors for “cat”, “kitten”, and “feline” are close together in vector space because they mean similar things.

Embeddings: How Data Becomes Numbers

An embedding is a representation of data as a vector. Modern embeddings come from machine learning models trained on massive datasets.

Popular embedding models:

Similarity Metrics: How Close Is Close?

Once you have vectors, how do you measure similarity?

For most use cases, cosine similarity is your friend.

Vector Databases: Do You Need One?

Here’s the hard truth: you probably don’t need a dedicated vector database yet.

Use PostgreSQL with pgvector if:

Use Pinecone/Weaviate/Milvus if:

Real-World Use Cases

Vector search is powerful, but it’s not magic. It’s a tool for finding similarities. Use it when that’s actually what you need.

RB

Rajesh B

Rajesh B is an instructor at FlitBridge.