# Optimizing vector search performance with pgvector

DevFeed: [Optimizing vector search performance with pgvector](<https://devfeed.tech/articles/optimizing-vector-search-performance-with-pgvector-5704.md>)

Original publisher: [Read original article](<https://neon.com/blog/optimizing-vector-search-performance-with-pgvector>)

Author: Raouf Chebri

Published: 2023-06-28T16:01:07Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [AI search](<https://devfeed.tech/topics/ai-search.md>), [ann](<https://devfeed.tech/topics/ann.md>), [Database](<https://devfeed.tech/topics/database.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [ann](<https://devfeed.tech/tags/ann.md>), [community](<https://devfeed.tech/tags/community.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pgvector](<https://devfeed.tech/tags/pgvector.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [product](<https://devfeed.tech/tags/product.md>), [search](<https://devfeed.tech/tags/search.md>), [vector](<https://devfeed.tech/tags/vector.md>), [vector-search](<https://devfeed.tech/tags/vector-search.md>)

## AI overview

This article explains how to optimize vector similarity search with pgvector in Postgres. It compares exact sequential scans with approximate nearest neighbor search using the ivfflat index, discusses performance as datasets grow, and introduces the Lists and Probes parameters that affect search speed and recall.

## Source excerpt

According to the StackOverflow Survey 2023, nearly half of professional developers use Postgres. It's natural then that the Postgres extension for vector similarity search, pgvector, is one of the most popular options for prototyping AI-powered applications. But how to properly u...