Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions content/administration/on_premise/source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,127 @@ PostgreSQL user.
Because the PostgreSQL user has the same name as the Unix login, it is possible to connect
to the database without a password.

.. note::
If you want to use **Odoo's AI features**, the `pg-vector` PostgreSQL extension is required.

Note that `pg-vector` is available only for PostgreSQL version 15 and up.

.. tabs::

.. group-tab:: Linux

#. Navigate to your temporary folder

.. code-block:: console

$ cd /tmp

#. Clone the `pg-vector` `GitHub repository <https://github.com/pgvector/pgvector>`_:

.. code-block:: console

$ git clone https://github.com/pgvector/pgvector.git

#. Navigate into the directory:

.. code-block:: console

$ cd pgvector

#. Compile the extension:

.. code-block:: console

$ make

#. Install the extension:

.. code-block:: console

$ sudo make install

If you run into any issues during installation, make sure to check the official
`installation notes <https://github.com/pgvector/pgvector#installation-notes---linux-and-mac>`__.

.. group-tab:: Mac OS

#. Navigate to your temporary folder

.. code-block:: console

$ cd /tmp

#. Clone the `pg-vector` `GitHub repository <https://github.com/pgvector/pgvector>`_:

.. code-block:: console

$ git clone https://github.com/pgvector/pgvector.git

#. Navigate into the directory:

.. code-block:: console

$ cd pgvector

#. Compile the extension:

.. code-block:: console

$ make

#. Install the extension:

.. code-block:: console

$ sudo make install

If you run into any issues during installation, make sure to check the official
`installation notes <https://github.com/pgvector/pgvector#installation-notes---linux-and-mac>`__.

.. group-tab:: Windows

#. Navigate to your temporary folder

.. code-block:: console

$ cd %TEMP%

#. Clone the `pg-vector` `GitHub repository <https://github.com/pgvector/pgvector>`_:

.. code-block:: console

$ git clone https://github.com/pgvector/pgvector.git

#. Navigate into the directory:

.. code-block:: console

$ cd pgvector

#. Ensure C++ support in Visual Studio is installed and run `x64 Native Tools
Command Prompt for VS [version]` as administrator.

#. Set your `PGROOT` environment variable:

.. code-block:: console

$ set "PGROOT=C:\Program Files\PostgreSQL\[Your PostgreSQL Version]"

#. Compile the extension:

.. code-block:: console

$ nmake /F Makefile.win

#. Install the extension:

.. code-block:: console

$ nmake /F Makefile.win install

If you run into any issues during installation, make sure to check the official
`installation notes <https://github.com/pgvector/pgvector#installation-notes---windows>`__.

.. _install/dependencies:

Dependencies
Expand Down