Installing AIDB

Installing AIDB#

AIDB is a standalone PostgreSQL extension — it installs directly on your Postgres instance with no dependency on AI Factory or Hybrid Manager. The steps below walk you through installing it as a standalone package.

!!!note If you’re deploying through AI Factory, AIDB is bundled and configured as part of that setup. Refer to the AI Factory installation guide instead.

AIDB is supported on the same platforms as the Postgres distribution you’re using. For details, see:

Prerequisites#

Before you begin the installation process:

  1. Set up the repository: Setting up the repository is a one-time task. If you’ve already set up your repository, you don’t need to perform this step. To set up the repository, go to EDB repositories and follow the instructions provided there.

  2. Install your flavor of Postgres if not already installed. See:

  3. Install the pgvector extension:

AIDB relies on the pgvector extension for vector data management.

For installation instructions, see Installing pgvector .

  1. Install VectorChord (optional): for high-performance, low-latency vector retrieval. See Installing VectorChord .

  2. Install VectorChord-BM25 (optional): required only if you need hybrid keyword + semantic search. See Installing VectorChord-BM25 .

Install the package#

The syntax for the package install command is:

#  For Debian/Ubuntu:

sudo apt-get install edb-<postgres><postgres_version>-aidb

#  For Linux:

sudo dnf install edb-<postgres><postgres_version>-aidb

Where

  • <postgres> is the distribution of Postgres you’re using:

Postgres distribution

Value

PostgreSQL

pg

EDB Postgres Advanced Server (EPAS)

as

EDB Postgres Extended

pgextended

  • <postgres_version> is the version of Postgres you’re using.

For example, to install AIDB for EDB Postgres Advanced Server 17 on Debian/Ubuntu:

sudo apt-get install edb-as17-aidb

For example, to install AIDB for PostgreSQL 16 on RHEL8:

sudo dnf install edb-pg16-aidb

After installing AIDB package, see Configuring AIDB for the next steps.