// rag · pgvector/pgvector

pgvector

pgvector — проект с открытым исходным кодом из категории «RAG и базы знаний» от pgvector (pgvector/pgvector на GitHub). У него 23 276 звёзд на GitHub и 1 341 форк, он распространяется по лицензии NOASSERTION и последний раз обновлялся на GitHub 8 октября 2026.

Vector similarity search inside Postgres - store embeddings next to your data

★ 23,3 тыс. звёзд⑂ 1,3 тыс. форковNOASSERTIONобновлено окт. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
pgvector/pgvector
Звёзды GitHub
23 276
Форки
1 341
Лицензия
NOASSERTION
Последнее обновление на GitHub
8 октября 2026
Тип страницы
Полное руководство по установке
// как это работает

Как это работает

  1. Decide how you will store vectors

    Plan a Postgres table with a vector column sized to your embedding model's dimensions.

  2. Get pgvector for your Postgres

    Clone the repository (or use a Postgres image or managed service that ships it).

  3. Build, install and enable it

    Compile the extension, install it into Postgres, and run CREATE EXTENSION vector in your database.

  4. Run your first similarity query

    Insert a few embeddings, add an index, and query nearest neighbors with the distance operator.

// возможности

Почему его любят

Exact and approximate search

Run exact nearest neighbor queries or speed them up with approximate indexing as your dataset grows.

HNSW indexing

Build HNSW indexes for a strong speed-recall tradeoff on large vector collections.

IVFFlat indexing

Use IVFFlat indexes when you want faster build times and lower memory use than HNSW.

Multiple distance functions

Choose from L2, inner product, cosine, L1, Hamming and Jaccard distances per query.

Flexible vector types

Store single-precision, half-precision, binary and sparse vectors to match your memory budget.

Full Postgres power

Combine vector search with SQL filters, JOINs, transactions and any Postgres client language.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repository

    Get the source code from GitHub and enter the project directory.

    git clone https://github.com/pgvector/pgvector.git
    cd pgvector
  2. Build and install the extension

    Compile pgvector against your Postgres installation (the README pins the current release branch).

    make
    make install # may need sudo
  3. Enable it and query

    Create the extension in your database, then store and search vectors with plain SQL.

    CREATE EXTENSION vector;
    -- then create a table with a vector column and query with the <-> operator
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains this project?

It is maintained by the pgvector open-source project, led by Andrew Kane, on GitHub.

Is it free to use?

Yes - pgvector is open source. GitHub lists its license as NOASSERTION, so review the LICENSE file in the repository for the exact terms.

Does it need a paid API key?

No. pgvector itself needs no API key; you only need a way to generate embeddings, which can be a local model or a provider API.

How does it compare to alternatives?

Unlike standalone vector databases such as Qdrant or Milvus, pgvector keeps vectors inside Postgres, so you get transactions, JOINs and one less system to operate - a good default when you already run Postgres.

How do I get started?

Clone the repo, build and install the extension, run CREATE EXTENSION vector, then follow the README's Getting Started section to store and query your first vectors.

// продолжить изучение

Похожие инструменты

RAG и базы знаний

seekdb

seekdb — the AI-native search database unifying vector, text and structured data for agents.

★ 3,1 тыс. звёздApache-2.0
Смотреть руководство →
RAG и базы знаний

deeplake

Deep Lake — a multimodal datalake and vector store for AI, with version control and training streaming.

★ 9,2 тыс. звёздApache-2.0
Смотреть руководство →
RAG и базы знаний

vespa

Vespa — the AI search platform: vector, text and tensor search at production scale.

★ 7,1 тыс. звёздApache-2.0
Смотреть руководство →
RAG и базы знаний

faiss

Meta's library for efficient similarity search and clustering of dense vectors, in C++ and Python

★ 41,1 тыс. звёздMIT
Смотреть руководство →
RAG и базы знаний

helix-db

An OLTP graph database with native vector and full-text search, built in Rust on object storage.

★ 6,1 тыс. звёздApache-2.0
Смотреть руководство →
RAG и базы знаний

swirl-search

Federated AI search and RAG across 100+ apps — answers with sources, without moving your data

★ 3,0 тыс. звёздApache-2.0
Смотреть руководство →
// альтернативы

Альтернативы: RAG и базы знаний

Другие проекты из категории «RAG и базы знаний» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если pgvector вам не подходит.

// ещё в категории rag

Больше проектов: RAG и базы знаний

Соседние проекты из категории «RAG и базы знаний» в каталоге, ближайшие по числу звёзд к pgvector — продолжайте изучать полку по обе стороны от него.

Получить pgvector

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.