Skip to content
ai-supply.store
खोजेंश्रेणियाँलीडरबोर्डसमुदायAgent APIFAQ
साइन इनमुफ़्त साइन अप
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
इंस्टॉल337k
⟳ upstream master@a642035 · updated 17d ago
↗ सोर्स रिपॉज़िटरी
← More Data & ETLData & ETL leaderboard →How we grade security →Source ↗
✓ Grade A · 100/100 · SafeSecurity assessment
✓No compromise signals6capabilities surfaced11of 20 OWASP controls clear
Suspicious code patternsPotentially unbounded loopExternal endpoints declared · expectedExternal endpoints declared · expected
scanned 16d ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

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.

Rating rank
#1
of 24 in Data & ETL
Install rank
#4
of 24 in Data & ETL
Security score
100/100 · A
safe
Security rank
#1
of 24 in Data & ETL
Installs
337k
cat avg 164k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Data & ETL leaderboard →
✓ Security: Safe · 100100/100 · grade Ascanned 16d ago
✓ no compromise signals6 risk-surface · 4/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · low confidence (static)
⚑ network
egress → www.postgresql.org, pgxn.org, gcc.gnu.org, llvm.org, en.wikipedia.org, learn.microsoft.com, pgtune.leopard.in.ua, platform.openai.com +10
github.comwww.postgresql.orgpgxn.orgen.wikipedia.orglearn.microsoft.compgtune.leopard.in.uaplatform.openai.comhub.docker.com

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM05Improper Output Handlinghigh
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — destructive rm -rf / · pgvector-pgvector-a642035/Dockerfile (CWE-78)risk surface
⚠LLM06Excessive Agencymedium
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · pgvector-pgvector-a642035/.github/workflows/build.ymlexpected
•External endpoints declared — 3 distinct host(s) · pgvector-pgvector-a642035/META.jsonexpected
•External endpoints declared — 2 distinct host(s) · pgvector-pgvector-a642035/Makefileexpected
•External endpoints declared — 17 distinct host(s) · pgvector-pgvector-a642035/README.mdexpected
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption · pgvector-pgvector-a642035/src/halfvec.c (CWE-835)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
✓LLM01Prompt InjectionPassed
✓LLM02Sensitive Information DisclosurePassed
✓LLM03Supply ChainPassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM07System Prompt LeakagePassed
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML09Output Integrityhigh
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — destructive rm -rf / · pgvector-pgvector-a642035/Dockerfile (CWE-78)risk surface
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML02Data PoisoningPassed
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML06AI Supply ChainPassed
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (10) · hygiene / uncategorized
•Unrecognized file type — '.editorconfig' is not on the allowlist · pgvector-pgvector-a642035/.editorconfigrisk surface
•Unrecognized file type — '.gitignore' is not on the allowlist · pgvector-pgvector-a642035/.gitignorerisk surface
•Unrecognized file type — '.?' is not on the allowlist · pgvector-pgvector-a642035/Dockerfilerisk surface
•Unrecognized file type — '.win' is not on the allowlist · pgvector-pgvector-a642035/Makefile.winrisk surface
•Unrecognized file type — '.c' is not on the allowlist · pgvector-pgvector-a642035/src/bitutils.crisk surface
•Unrecognized file type — '.h' is not on the allowlist · pgvector-pgvector-a642035/src/bitutils.hrisk surface
•Unrecognized file type — '.out' is not on the allowlist · pgvector-pgvector-a642035/test/expected/bit.outrisk surface
•Unrecognized file type — '.pm' is not on the allowlist · pgvector-pgvector-a642035/test/perl/PostgreSQL/Test/Cluster.pmrisk surface
•Unrecognized file type — '.pl' is not on the allowlist · pgvector-pgvector-a642035/test/t/001_ivfflat_wal.plrisk surface
•Unrecognized file type — '.control' is not on the allowlist · pgvector-pgvector-a642035/vector.controlrisk surface
✔ verified source · pinned pgvector-pgvector-a642035
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/pgvector-postgres-embeddings/check). Click a policy:

Consume pgvector programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/pgvector-postgres-embeddings

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/pgvector-postgres-embeddings/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add pgvector-postgres-embeddings

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/pgvector-postgres-embeddings/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "pgvector-postgres-embeddings" })
OpenAPI spec →
vlatest
✓ Security: Safe · 1001mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

मुफ़्त, सुरक्षा-जाँची गई AI क्षमताएँ — skills, MCPs, plugins, agents, datasets और बहुत कुछ, हर एक ग्रेडेड और ताज़गी-ट्रैक्ड, और इंसानों तथा agents दोनों के लिए बनाई गई।

api · v3.1status · all green
संपर्क करें
support@ai-supply.storesecurity@ai-supply.store
कैटलॉग
  • खोजें
  • श्रेणियाँ
  • लीडरबोर्ड
  • बेंचमार्क
  • सुरक्षा
  • Scan a repo
समुदाय
  • समुदाय
  • FAQ
एजेंट के लिए
  • क्विकस्टार्ट (60s)
  • एजेंट अधिकृत करें
  • Agent API
  • OpenAPI स्पेसिफिकेशन
बिल्डर्स के लिए
  • प्रकाशित करें
  • डैशबोर्ड
खाता
  • खाता बनाएँ
  • साइन इन
  • सेटिंग्स
कानूनी
  • नियम व शर्तें
  • प्रकाशक अनुबंध
  • स्वीकार्य उपयोग नीति
  • गोपनीयता