Skip to content

RAG

191 extensions

Vector & AI

  • vector

    vector data type and ivfflat and hnsw access methods

  • vchord

    Vector database plugin for Postgres, written in Rust

  • vectorscale

    Advanced indexing for vector data with DiskANN

  • vectorize

    The simplest way to do vector search on Postgres

  • pg_similarity

    support similarity queries

  • pg_rrf

    Reciprocal rank fusion functions for hybrid search

  • smlar

    Effective similarity search

  • pg_summarize

    Text Summarization using LLMs. Built using pgrx

  • pg_tiktoken

    tiktoken tokenizer for use with OpenAI models in postgres

  • pg_tiktoken_c

    Fast tiktoken BPE tokenizer for PostgreSQL implemented in C

  • pg_grammar_guard

    Catalog-derived grammars and approved grammar drift checks

  • jev

    Natural-language row filtering, ranking and classification through a Jev-compatible API

  • pg4ml

    Machine learning framework for PostgreSQL

  • pgml

    Run AI/ML workloads with SQL interface

  • pgmnemo

    Single-plan multimodal agent memory for PostgreSQL

  • pgcontext

    Vector, filter-aware HNSW, and hybrid retrieval over authoritative PostgreSQL tables.

  • pgcontext_pgvector

    Optional pgvector compatibility bridge for pgcontext HNSW indexes.

  • pg_turbovec

    TurboQuant-compressed vector type and ANN index access method for PostgreSQL.

  • pg_vectorsearch

    Approximate vector search with PRISM indexes and RaBitQ quantization

  • ai

    Helper functions for AI workflows in PostgreSQL

  • kmeans

    K-means clustering window function for PostgreSQL

  • rag

    Deprecated RAG helper extension for document extraction/chunking and remote embedding, reranking, and chat APIs.

  • rag_bge_small_en_v15

    rag_bge_small_en_v15: local bge-small-en-v1.5 embeddings in PostgreSQL

  • rag_jina_reranker_v1_tiny_en

    Runs jina-reranker-v1-tiny-en locally in a preloaded background worker and exposes SQL rerank scores and distances.

  • hamming_distance

    Hamming distance and similarity functions for hexadecimal feature-vector strings.

  • hclust

    C function for agglomerative or divisive hierarchical clustering that writes cluster assignments back to a table.

  • sparse_vector

    C data type and functions for sparse float vectors, normalization, dot product, and cosine similarity.

  • pgpyml

    Run scikit-learn machine-learning models inside PostgreSQL through PL/Python functions and triggers.

  • pg_phash

    Calculate Hamming distance between decimal-encoded perceptual image hashes

  • postgresml

    Exposes tsvector lexemes and position counts for an experimental naive Bayes text-classification demo.

  • mtree

    Metric-space index access method derived from PostgreSQL GiST

  • lantern_extras

    Convenience functions for working with vector embeddings

  • goldenmatch_pg

    GoldenMatch entity-resolution functions for deduplication, matching, scoring, and golden-record workflows.

  • pgpu

    GPU acceleration for PostgreSQL vector index builds using NVIDIA CUDA/cuVS and VectorChord.

  • vectors

    Vector database plugin for PostgreSQL, written in Rust, specifically designed for LLM

  • quria

    quria: experimental pgrx extension for BM25 full-text and HNSW vector search

  • pg_extension

    In-database model slicing and inference helper functions for structured data analytics.

  • pg_knowledge_graph

    Knowledge graph extension for PostgreSQL with graph algorithms and pgvector integration.

  • flame

    PGRX proof-of-concept extension that generates text embeddings with fastembed/MiniLM.

  • hamming

    Rust/pgrx extension providing a Hamming-distance operator for bytea plus an unfinished experimental IVF index access method.

  • malwaredb_pg

    PostgreSQL extension for MalwareDB similarity functions: SSDeep, LZJD, and TLSH

  • pg_splade

    Generate SPLADE sparse-vector embeddings inside PostgreSQL

  • pg_ivfflat

    Experimental pgrx extension providing a Vector type and an in-memory IVFFlat index access method.

  • ai_toolkit

    AI-powered query generation and explanation tools for PostgreSQL.

  • alloydb_scann

    AlloyDB ScaNN extension for approximate nearest-neighbor vector indexes.

  • avocado

    AvocadoDB PostgreSQL extension for deterministic context compilation for AI agents.

  • aws_ml

    Amazon Aurora PostgreSQL extension for invoking Amazon Comprehend, SageMaker AI, and Bedrock services from SQL.

  • azure_ai

    Azure Database for PostgreSQL extension for in-database calls to Azure AI, Azure OpenAI, Cognitive Services, and Azure Machine Learning.

  • bktree

    SP-GiST BK-tree index extension for 64-bit perceptual hashes and Hamming-distance searches.

  • embedding

    HNSW vector similarity search extension for PostgreSQL real[] embeddings.

  • embedding_search

    LangChain/Supabase helper package for storing and searching document embeddings with pgvector.

  • google_ml_integration

    Google Cloud machine learning integration extension for registering model endpoints, generating embeddings, and invoking predictions from SQL.

  • hybrid_search

    Hybrid pgvector and full-text search helper functions for LangChain and Supabase.

  • neurondb

    AI database extension for vector search, ML inference, hybrid search, and RAG in PostgreSQL.

  • ollama

    Ollama client for PostgreSQL

  • pase

    PostgreSQL ultra-high dimensional approximate nearest neighbor search extension.

  • pg_diskann

    Azure Database for PostgreSQL extension for DiskANN approximate-nearest-neighbor vector indexes.

  • pg_emd

    Fast approximate Earth Mover's Distance using dynamic tree embeddings

  • pg_llm

    Integrates local and remote large-language models with chat, sessions, text-to-SQL, audit and vector-backed knowledge features.

  • pg_onnx

    ONNX Runtime integrated with PostgreSQL. Perform ML inference with data in your database.

  • pg_pageindex

    PageIndex document-tree construction and tree search for PDF and Markdown through a C/Go bridge.

  • pgafis

    AFIS Support for PostgreSQL

  • pgchy_similarity

    Chemical structure similarity functions for PostgreSQL using Chython and PL/Python.

  • pgclaw

    Store LLM or OpenClaw agents as PostgreSQL values and process watched rows with a background worker

  • pgdl

    PostgreSQL extension for deep learning model inference and vector storage inside the database.

  • pgedge_vectorizer

    Asynchronous text chunking and embedding generation for PostgreSQL using background workers and pgvector.

  • postllm

    postllm: PostgreSQL-native access to OpenAI-compatible and local LLM runtimes

  • rds_ai

    Alibaba Cloud RDS extension for calling LLMs, generating embeddings, semantic retrieval, and end-to-end RAG from SQL

  • rds_embedding

    Alibaba Cloud RDS text-to-vector model invocation extension

  • ruvector

    SIMD-accelerated vector type and indexes with graph, solver, TDA, local embedding, and AI SQL functions.

  • tencentdb_ai

    TencentDB extension for calling large-model APIs and building in-database RAG workflows.

  • pg_semantic_cache

    Caches query results and retrieves semantically similar results using pgvector embeddings and configurable eviction policies.

  • pg_sentence_transformer

    Runs a Hugging Face sentence-transformer model inside a preload background worker and maintains pgvector embeddings for a configured table.

  • pg_turboquant

    Compact TurboQuant approximate-nearest-neighbor index access method for pgvector vector and halfvec data.

  • pg_ask

    Postgres Extension which uses AI to create SQL from Natural language.

  • pg_gembed

    Generate embeddings inside PostgreSQL

  • alohadb_nl2sql

    Natural language to SQL translation via LLM API

  • aqua

    In-database neural user-defined functions for machine-learning inference.

  • bitpolar_pg

    BitPolar: near-optimal vector quantization — 3-8 bit compression with zero training. 58 integrations across every major AI framework.

  • catboost

    machine learning module using CatBoost

  • ecaz

    Rust PostgreSQL extension for high-performance vector storage with broad quantization and index support.

  • glia

    A PostgreSQL extension for data mining.

  • gp_sparse_vector

    Sparse vector implementation for Greenplum-family databases.

  • jessevent@ai_sql

    AI inference SQL functions for Supabase. Self-deploys its own edge function via ai.deploy().

  • jessevent@supa_aisql

    AI inference SQL functions for Supabase. Self-deploys its own edge function via ai.deploy().

  • llama_embed

    llama.cpp embedding extension for dense and multivector search

  • lshvector

    a feature vector type and a locality sensitive hashing index

  • madlib

    An open-source in-database analytics library

  • maludb_core

    PostgreSQL memory and knowledge graph with tenant schemas, vector retrieval, and scoped principals

  • mcp_postgrest

    PostgreSQL extension to define AI tools compatible with Anthropic's Model Context Protocol (MCP). Fully customizable, schema-agnostic, secure, and integrated with PostgREST.

  • nr_model

    AI-powered Autonomous Data System

  • ogai

    OGAI - AI vectorization and search framework for openGauss

  • otlet

    Local LLM inference inside PostgreSQL with background workers, queued tasks, receipts, and semantic data operations.

  • pg_ai

    PostgreSQL extension that provides (RAG capable)SQL functions to interpret data using multi modal LLMs and vectors.

  • pg_ai_sdk

    Translate natural language to SQL using Clickhouse ai-sdk-cpp

  • pg_colbert_llama

    ColBERT embedding companion extension for pgturbohybrid

  • pg_cuvs

    NVIDIA cuVS GPU search and GPU-assisted pgvector HNSW builds.

  • pg_deeplake

    Deeplake is AI Data Runtime for Agents. It provides serverless postgres with a multimodal datalake, enabling scalable retrieval and training.

  • pg_embed

    Generate and store OpenAI embeddings in-place

  • pg_fela

    The holy grail of AutoML for PG - self classifying and regressing tabular data!

  • pg_gen_query

    A PostgreSQL extension written in C++ that adds no-maintenance GenAI querying functionality using Clickhouse's AI SDK

  • pg_gist_hamming

    support for indexing common datatypes in GiST

  • pg_gpt

    Experimental extension that brings OpenAI API to your PostgreSQL to run queries in human language.

  • pg_hybrid

    hybrid storage engine: columnar, vector, fulltext

  • pg_kmersearch

    A PostgreSQL extension adding 2 datatypes of 2-bit or 4-bit per 1-mer for nucleotide sequence data and GIN index based on k-mer

  • pg_llm_bgw

    example of Rust implementation of background workder to call LLM from within PostGres client DML SQL

  • pg_ocr

    Self-contained OCR functions via PL/Python

  • pg_optigraph

    pg Optigraph is a PostgreSQL extension which uses OptiGraph ML model.

  • pg_rvbbit

    Semantic SQL operators backed by configurable LLMs, with caching, receipts, and routing across multiple execution engines.

  • pg_synapse_pgrx

    pg synapse: Postgres-native agent-loop runtime

  • pgai

    In-database predictive analytics using LSTM, Prophet, ARIMA, and SARIMA models.

  • pgtensor

    Run inference on ONNX models inside your Postgres database (and a Tensor type)

  • pgtoken

    PostgreSQL extension for compact, codebook-compressed LLM token ID storage. Encode once, retrieve forever. O(1) token count without decoding.

  • pgturbohybrid

    hybrid vector and BM25 search for PostgreSQL on top of pgvector

  • pgturbohybrid_experimental

    experimental sparse and multivector features for pgturbohybrid

  • pgv

    Minimal vector extension

  • pgvector

    Custom vector type with Euclidean distance, cosine similarity, and prototype IVFFlat helpers.

  • pgvecutils

    This project is a PostgreSQL extension that provides vector manipulation utilities.

  • rikai

    rikai ML extensions

  • sveddy

    A PostgreSQL extension for collaborative filtering using low-rank matrix approximation techniques.

  • tlsh_gist

    TLSH fuzzy-hash data type, distance operations, and GiST indexing for similarity search.

  • vexdb_lite

    A cross-platform vector database, which can be integrated into existing databases as a plugin.

  • vptree

    VP-tree implementation

  • pg_infer

    Expose transformer model knowledge as SQL relations and a custom index access method

  • pg_recall_guard

    Measure ANN index recall and detect drift from an approved baseline

  • aidb

    In-database AI pipelines for chunking, embedding, retrieval, and generation.

  • pg_embedder

    In-backend text embedding inference using Rust, Candle, and packaged models.

  • pg_sag_rag

    Pure-SQL multi-hop event/entity retrieval, query routing, and in-database RAG evaluation.

  • pg_vector_embedding

    Trigger-driven vector embedding through external HTTP services and a background queue.

  • pgokf

    Transactional Open Knowledge Format catalog with lexical and optional semantic search.

  • svs

    SVS Vamana approximate-nearest-neighbor index with LeanVec and LVQ compression for pgvector.

  • postvec

    Automatic embeddings, hybrid search, and embedding model migration

  • typesafe

    SQL client for TypeSafe AI classification and scoring

  • pgembed

    Generate vector embeddings through Ollama, OpenAI, or custom HTTP services

  • paves

    Filtered L2 vector search with CPU and optional GPU execution

  • pgquarry

    SQL job queue for local embedding and text-generation workers

  • tqvector

    Compressed vector type with quantization and distance functions

  • pg_ai_stewards

    PostgreSQL-backed agent state, work queues and model dispatch

  • stewards_companion

    Companion reminders and tool-management pack for pg_ai_stewards

  • faiss_pg

    Faiss vector index files and nearest-neighbor search through SQL functions

  • gv_index

    openGauss graph-based vector index access method

  • vector_recall

    Faiss vector-index creation, training and search for Greenplum.

  • vector_chem

    Tanimoto distance for binary-valued pgvector vectors.

  • polyvector

    Prototype composite type routing vectors by dimension.

  • openai

    SQL client functions for OpenAI-compatible HTTP APIs.

  • pgagentos

    SQL schemas and functions for agent state, jobs and retrieval.

  • pg_feature

    SQL feature synthesis across table relationships and time cutoffs.

  • pg_ml

    PyCaret model training and prediction managed from PostgreSQL.

  • pgx_vectorizer

    Fujitsu automatic vectorization and semantic search

  • pgx_inference

    Fujitsu database-managed ONNX model inference

  • geo_vec

    Composite vector similarity and spatial filtering indexes derived from DiskANN

  • pg_dist_rag

    SQL catalog and work queues for distributed document and embedding pipelines

  • alohadb_gpu

    GPU vector batch operations with CPU fallback in AlohaDB

  • vector_extra

    Experimental matrix-vector multiplication using pgvector and a binary matrix representation.

  • tensor_dancer

    Experimental PostgreSQL text interface to a local Ollama service.

  • vexec_pgvector

    pgvector distance kernel declarations for the vexec batch executor

  • pqnai

    Queued forecasting and retrieval backed by an external Go worker

  • hnsw

    Experimental in-memory HNSW indexing for real arrays

  • pg_evidence

    Versioned evidence storage and bounded document retrieval

  • pg_steadytext

    SteadyText generation, embeddings, caching and prompt templates in SQL

  • pg_db4ai

    In-process machine learning training and prediction with native algorithms and XGBoost

  • pg_nlquery

    Generate and execute SQL from natural-language questions using an LLM endpoint.

  • pg_dann

    Disk-oriented IVF approximate vector indexes with SQ8 or RaBitQ quantization.

  • pg_systemone

    SQL functions for decision-model inference through a SystemOne HTTP service

  • percolate

    SQL workflow engine and agent-memory schemas with application-role isolation

  • percolate_parser

    Native query, YAML workflow and graph routines for Percolate

  • pg_graphrag

    Knowledge graphs with provenance, temporal facts and permission-aware retrieval

  • pg_phasevec

    Provenance-aware vector readings with stale-row verification and IVF search

  • pg_pinecone

    Pinecone-compatible vector, full-text and remote search engines inside PostgreSQL

  • lakebase_vector

    Approximate vector search using lakebase_ann on managed Lakebase

  • fractalsql

    C and SQL primitives for vector search, in-database reasoning and agent workflows in PostgreSQL.

  • fractalsql_agents

    Optional PL/pgSQL agent engines composed from fractalsql search, reasoning and analytics functions.

  • dase_batch_hnsw

    Batched HNSW range probes for semantic join index construction in DASE.

  • course_embedding_search

    Exact cosine scan over packed course embedding blocks with per-group maxima.

  • trigpoint

    Sketch-based vector index with calibrated distance pruning.

  • tsfm

    Local time-series forecasting with Chronos-2 and Timestral models.

  • pg_vxvector

    External CPU or Metal centroid training for VectorChord index builds.

  • vectorfast

    Calico activation and optimistic HNSW prefetch integration for pgvector.

  • pg_context

    AlohaDB: Entity disambiguation and context-sensitive ranking

  • pg_embeddings

    AlohaDB: Embedding lifecycle and hybrid retrieval over AlohaDB vectors

  • pg_graph

    AlohaDB: Property-graph traversal and algorithms over ordinary tables

  • pg_inference

    AlohaDB: ONNX inference using AlohaDB core vector types

  • pg_model_registry

    AlohaDB: Model versions, deployment metadata and experiments

  • pg_ontology

    AlohaDB: Ontology triples, hierarchy traversal and history

  • pg_vector

    AlohaDB: Named ANN index helpers over AlohaDB core vectors

  • kci_vec_pg

    KCI-Vec approximate nearest-neighbor search

  • pg_augur

    Augur model training, storage and inference inside PostgreSQL

  • pg_certvec_v2

    Research multi-vector similarity search over external certified indexes

  • pg_agentmem

    AlohaDB versioned agent memory with scoped hybrid recall

  • pg_pink_slonik

    Run small Llama models inside PostgreSQL using C or SQL

  • pg_proven

    Nearest-neighbour and vector-set indexing for pgvector types