Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Docmost
  3. AI-powered search (AI Answers) needs pgvector extension

AI-powered search (AI Answers) needs pgvector extension

Scheduled Pinned Locked Moved Docmost
postgres
8 Posts 3 Posters 90 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Teiluj
    wrote last edited by
    #1

    Hi,

    It seems that the "AI-powered search (AI Answers)" function needs the pgvector extension for Postgres to work.
    635887eb-ca23-4e39-a9e6-00718658cef2-image.jpeg

    Is it possible to include in the package?

    Many thanks,

    1 Reply Last reply
    1
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @teiluj
      Please include the output of cloudron-support --troubleshoot.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Teiluj
        wrote last edited by Teiluj
        #3

        Hi @james

        Here is the output:

        Vendor: QEMU Product: Standard PC (Q35 + ICH9, 2009)
        Linux: 6.8.0-110-generic
        Ubuntu: noble 24.04
        Execution environment: kvm
        Processor: Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz
        BIOS pc-q35-10.0  CPU @ 2.0GHz x 8
        RAM: 32866116KB
        Disk: /dev/sda2       581G
        [OK]    node version is correct
        [OK]    IPv6 is enabled and public IPv6 address is working
        [OK]    docker is running
        [OK]    docker version is correct
        [OK]    MySQL is running
        [OK]    netplan is good
        [OK]    DNS is resolving via systemd-resolved
        [OK]    unbound is running
        [OK]    nginx is running
        [OK]    dashboard cert is valid
        [OK]    dashboard is reachable via loopback
        [OK]    No pending database migrations
        [OK]    Service 'mysql' is running and healthy
        [OK]    Service 'postgresql' is running and healthy
        [WARN]  Service 'mongodb' is not running (may be lazy-stopped)
        [OK]    Service 'mail' is running and healthy
        [OK]    Service 'graphite' is running and healthy
        [OK]    Service 'sftp' is running and healthy
        [OK]    box v9.1.6 is running
        [OK]    Dashboard is reachable via domain name
        

        Are you looking for something in particular?

        jamesJ 1 Reply Last reply
        1
        • T Teiluj

          Hi @james

          Here is the output:

          Vendor: QEMU Product: Standard PC (Q35 + ICH9, 2009)
          Linux: 6.8.0-110-generic
          Ubuntu: noble 24.04
          Execution environment: kvm
          Processor: Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz
          BIOS pc-q35-10.0  CPU @ 2.0GHz x 8
          RAM: 32866116KB
          Disk: /dev/sda2       581G
          [OK]    node version is correct
          [OK]    IPv6 is enabled and public IPv6 address is working
          [OK]    docker is running
          [OK]    docker version is correct
          [OK]    MySQL is running
          [OK]    netplan is good
          [OK]    DNS is resolving via systemd-resolved
          [OK]    unbound is running
          [OK]    nginx is running
          [OK]    dashboard cert is valid
          [OK]    dashboard is reachable via loopback
          [OK]    No pending database migrations
          [OK]    Service 'mysql' is running and healthy
          [OK]    Service 'postgresql' is running and healthy
          [WARN]  Service 'mongodb' is not running (may be lazy-stopped)
          [OK]    Service 'mail' is running and healthy
          [OK]    Service 'graphite' is running and healthy
          [OK]    Service 'sftp' is running and healthy
          [OK]    box v9.1.6 is running
          [OK]    Dashboard is reachable via domain name
          

          Are you looking for something in particular?

          jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #4

          Hello @teiluj

          @Teiluj said:

          Are you looking for something in particular?

          Wanted to ensure that the troubleshooting command looks all good and the Cloudron version is not many versions back.
          I will have to look into it why pgvector is missing for docmost.

          1 Reply Last reply
          2
          • T Offline
            T Offline
            Teiluj
            wrote last edited by
            #5

            Makes sense - thanks a lot!

            1 Reply Last reply
            0
            • J Online
              J Online
              joseph
              Staff
              wrote last edited by
              #6

              It seems the AI feature is only available with paid plans. From what I read at https://docmost.com/docs/self-hosting/ai/ai-search#enable-ai-search-in-workspace, "Wait for background job to generate embeddings for existing pages (You can monitor via logs if DEBUG_MODE: true env is set)" .

              The error comes from here which looks for the page_embeddings table.

              Web Terminal -> Postgres button -> Enter -> "\dt" (lists the tables). Do you see page_embeddings there?

              1 Reply Last reply
              1
              • J Online
                J Online
                joseph
                Staff
                wrote last edited by joseph
                #7

                @teiluj In the Web terminal -> postgres , you can do CREATE EXTENSION vector; This creates pgvector extension on the database. You can verify with \dx . Not sure what you have to do in docmost after you create the extension though. Maybe there is some button to create the tables again? Maybe try restarting the app.

                db17f43a5953ed499cbe9ebaa84c652f85=> \dx
                                                    List of installed extensions
                   Name   | Version |   Schema   |                            Description                            
                ----------+---------+------------+-------------------------------------------------------------------
                 pg_trgm  | 1.6     | public     | text similarity measurement and index searching based on trigrams
                 plpgsql  | 1.0     | pg_catalog | PL/pgSQL procedural language
                 unaccent | 1.1     | public     | text search dictionary that removes accents
                 vector   | 0.8.2   | public     | vector data type and ivfflat and hnsw access methods
                (4 rows)
                
                1 Reply Last reply
                1
                • T Offline
                  T Offline
                  Teiluj
                  wrote last edited by
                  #8

                  Hi @joseph Thanks for this.
                  I can confirm that vector is now enabled.
                  Docmost is still complaining when I activate the option, but I see no "page_embeddings" tables at the moment so I will wait for a potential background creation and report.

                  Thanks again,

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search