Skip to content

[IMP] ai: add documentation about pgvector#17852

Open
pkyriakou wants to merge 1 commit into
19.0from
19.0-ai-pgvector-info-paky
Open

[IMP] ai: add documentation about pgvector#17852
pkyriakou wants to merge 1 commit into
19.0from
19.0-ai-pgvector-info-paky

Conversation

@pkyriakou
Copy link
Copy Markdown

The PostgreSQL extention pgvector is required in order for users to use the AI features when they are self hosting Odoo. The documentation did not mention pgvector at all though,

In this commit we add some installation instructions for pgvector.

Issue-17800

@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented May 12, 2026

Pull request status dashboard

@C3POdoo C3POdoo requested a review from a team May 12, 2026 14:32
@pkyriakou pkyriakou force-pushed the 19.0-ai-pgvector-info-paky branch from 9c29426 to f757ce3 Compare May 13, 2026 08:18
The PostgreSQL extention `pgvector` is required in order for users to use
the AI features when they are self hosting Odoo. The documentation did
not mention `pgvector` at all though,

In this commit we add some installation instructions for pgvector.

Issue-17800
@pkyriakou pkyriakou force-pushed the 19.0-ai-pgvector-info-paky branch from f757ce3 to d09b40a Compare May 13, 2026 09:40
Copy link
Copy Markdown
Collaborator

@AntoineVDV AntoineVDV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @pkyriakou, thanks for updating this for everyone 🙂

Comment on lines +423 to +424
If you want to use **Odoo's AI features**, the `pg-vector` PostgreSQL extension is required.
Note that `pg-vector` is available only for postgres version 15 and up.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single line returns don't do anything in RST. Make it a separate paragraph:

Suggested change
If you want to use **Odoo's AI features**, the `pg-vector` PostgreSQL extension is required.
Note that `pg-vector` is available only for postgres version 15 and up.
If you want to use **Odoo's AI features**, the `pg-vector` PostgreSQL extension is required.
Note that `pg-vector` is available only for postgres version 15 and up.

Comment on lines +423 to +424
If you want to use **Odoo's AI features**, the `pg-vector` PostgreSQL extension is required.
Note that `pg-vector` is available only for postgres version 15 and up.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If you want to use **Odoo's AI features**, the `pg-vector` PostgreSQL extension is required.
Note that `pg-vector` is available only for postgres version 15 and up.
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.


$ sudo npm install -g rtlcss

.. note::
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this note in the PostgreSQL section.


.. tabs::

.. group-tab:: Linux and macOS
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this works, it would be better to keep separate Linux and macOS tabs in the context of this page, because tabs are synchronized by title, and users won't have to click tab headers in every section they read.


#. Navigate to your temporary folder

.. tabs::
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than split the instructions at the steps level, which is a bit messy, move your tabs above the numbered list for a cleaner structure.

.. tabs::

.. group-tab:: Linux and macOS
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>`_
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should rather be moved to the end of the Linux and macOS tabs' content.

$ sudo make install

.. group-tab:: Windows
Ensure C++ support in Visual Studio is installed and `run x64 Native Tools Command Prompt for VS [version]` as administrator
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds like a numbered step on its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants