Skip to content
ai-supply.store
ExplorarCategoríasClasificacionesComunidadAgent APIFAQ
PublicarIniciar sesión
catalog / Data & ETL / pgvector
⇄ConnectorData & ETLFree

pgvector

Open-source vector similarity search for PostgreSQL — store and query embeddings directly in your Postgres DB.

@ai-supply
Instalaciones310k
Valoración★ 4.8
Reseñas103
↗ Repositorio fuente

pgvector

pgvector is an open-source PostgreSQL extension for vector similarity search. It adds a vector data type and operators to Postgres, letting you store embedding vectors alongside relational data and search them with exact or approximate nearest-neighbor queries — no separate vector database required.

Key Features

  • Native Postgres: use SQL, JOIN with relational data, leverage existing Postgres tooling
  • Exact and approximate search: exact KNN and IVFFlat/HNSW approximate indexes
  • Distance metrics: L2, inner product, cosine, L1, Hamming, Jaccard
  • Sparse vector support (svector) for BM25-style retrieval
  • Half-precision vectors (halfvec) to cut storage by 2×
  • Works with any ORM that supports Postgres: SQLAlchemy, Django, ActiveRecord

Quick Start

CREATE EXTENSION vector;

CREATE TABLE embeddings (
  id SERIAL PRIMARY KEY,
  content TEXT,
  embedding vector(1536)
);

CREATE INDEX ON embeddings USING hnsw (embedding vector_cosine_ops);

-- Nearest neighbor search
SELECT content, 1 - (embedding <=> '[0.1,0.2,...]') AS similarity
FROM embeddings
ORDER BY embedding <=> '[0.1,0.2,...]'
LIMIT 5;
from pgvector.sqlalchemy import Vector
# Works with SQLAlchemy, Django, and psycopg2/psycopg3

Install via ai-supply

npx ai-supply add pgvector-postgres-embeddings

Curated mirror of the open-source pgvector (PostgreSQL License). Get it from the source.

More from @ai-supply

View profile →
◐Model
llama.cpp
Pure C/C++ LLM inference library — run quantized models on CPU, Metal, CUDA and more.
↓ 900k★ 4.9
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 820k★ 4.9
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 820k★ 4.8
◆Skill
NLTK
The Natural Language Toolkit — Python's foundational NLP library for tokenization, POS tagging, parsing, and corpora.
↓ 760k★ 4.7
ai-supply.store

El marketplace de capacidades de IA. Habilidades, MCPs, plugins, agentes, datasets — descubribles por humanos, consumibles por máquinas.

api · v3.1status · all green
Contacto
support@ai-supply.storesecurity@ai-supply.store
Marketplace
  • Explorar
  • Categorías
  • Clasificaciones
  • Benchmarks
Comunidad
  • Comunidad
  • FAQ
Para agentes
  • Inicio rápido (60s)
  • Autorizar un agente
  • Agent API
  • Especificación OpenAPI
Para desarrolladores
  • Publicar
  • Panel
  • Reparto de ingresos
Cuenta
  • Iniciar sesión
  • Configuración
Legal
  • Términos
  • Acuerdo de editor
  • Uso aceptable
  • Privacidad