Skip to content

Commit f435838

Browse files
committed
update docs
1 parent cae3c91 commit f435838

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

docs/self-hosting/ai/ai-search/ai-search.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,20 @@ AI-powered search in Docmost uses vector embeddings to provide semantic search a
1414

1515
## Installing pgvector
1616

17-
### Docker Setup (Recommended)
17+
### Docker Setup
18+
:::warning
19+
Since Docmost's default PostgreSQL compose image is Alpine-based, and pgvector does not have an Alpine build, you will not be able to do a clean in-place swap. Instead, you'll need to migrate your data.
20+
:::
1821

19-
Use the official pgvector Docker image instead of the standard PostgreSQL image:
22+
You can switch your PostgreSQL image to pgvector's bundled PostgreSQL build.
2023

21-
```yaml
22-
# docker-compose.yml
23-
services:
24-
db:
25-
image: pgvector/pgvector:pg17
26-
environment:
27-
POSTGRES_DB: docmost
28-
POSTGRES_USER: docmost
29-
POSTGRES_PASSWORD: your_password
30-
volumes:
31-
- db_data:/var/lib/postgresql/data
32-
```
24+
If you already have Docmost set up, you may want to back up your PostgreSQL database first, then import it into the pgvector PostgreSQL image.
3325

34-
The pgvector extension will be automatically available.
26+
See pgvector docker guide: https://github.com/pgvector/pgvector#docker
3527

3628
### Manual Installation
3729
If you are using a non-docker installation of Postgres, you can manually install the pgvector extension.
38-
See the pgvector installation guide: https://github.com/pgvector/pgvector?tab=readme-ov-file#installation
30+
See the pgvector installation guide: https://github.com/pgvector/pgvector#installation
3931

4032
## Supported AI Providers
4133

0 commit comments

Comments
 (0)