Although AI is not ready for selfhost using, you can still enable the AI features by importing AI config to your server.
create a config.json
and put it under $CONFIG_LOCATION
you set in your .env
file. Remember to restart the containers to make the config taking effects.
The above only demonstrate you to set openai provider.
If you prefer using other ai providers, checkout this discussion.
Starting from version 0.21, AFFiNE added support for AI doc embedding, which requires PostgreSQL vector extension, and pgvector was choosen.
You need to update the images used in compose.yml
or manually install pgvector extension to your own Postgres server if you use standalone one.
::: wanring BACKUP!
Do backup before any database regarding updates.
:::
Be noticed that the major version of replacer pgvector/pgvector:pg{version}
must be the same as old postgres image postgres:{version}