You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/self-hosting/ai-worker.md
+32-1Lines changed: 32 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,13 @@ sidebar_position: 2
4
4
5
5
# AI Tagging
6
6
7
-
The AI Tagging feature uses [Ollama](https://github.com/ollama/ollama) behind the scenes. If you're self-hosting Linkwarden, you need to set up Ollama and pull your preferred model onto your server to use this feature. A lightweight model like the `phi3:mini-4k` is enough for this feature.
7
+
You need to set up an AI provider to use the AI tagging feature in your self-hosted instance of the app. This feature allows you to automatically tag your media files with relevant keywords, making it easier to search and organize your content.
8
+
9
+
## Supported Providers
10
+
11
+
### Ollama Provider
12
+
13
+
You can set up [Ollama](https://github.com/ollama/ollama) and pull your preferred model onto your server to use this feature. A lightweight model like the `phi3:mini-4k` is enough for this feature.
8
14
9
15
After that, you need to define the `NEXT_PUBLIC_OLLAMA_ENDPOINT_URL` and `OLLAMA_MODEL` environment variables inside your `.env` file.
You can use an OpenAI-compatible provider for AI tagging by defining the following environment variables in your `.env` file:
27
+
28
+
```
29
+
CUSTOM_OPENAI_BASE_URL=
30
+
OPENAI_MODEL=
31
+
OPENAI_API_KEY=
32
+
```
33
+
34
+
Note that if you want to use OpenAI's official API, you don't need to define the `CUSTOM_OPENAI_BASE_URL` variable, as it defaults to OpenAI's API URL. Here's an example of how to set it up:
Copy file name to clipboardExpand all lines: docs/self-hosting/environment-variables.md
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,13 @@ sidebar_position: 3
4
4
5
5
# Environment Variables
6
6
7
-
Here are all the additional variables you can define in the `.env` file for setting up a self-hosted instance:
7
+
Here are all the additional variables you can define in the `.env` file for setting up a self-hosted instance.
8
+
9
+
:::note For Docker Users
10
+
11
+
After changing your .env file, a `$ docker compose restart` won't suffice, you'll need to do a `$ docker compose down` and `$ docker compose up -d` to have the new .env variables propagate.
The only thing you MUST change here is `NEXTAUTH_SECRET` and `POSTGRES_PASSWORD`, they both should be different secret phrases.
55
+
The only thing you MUST change here is `NEXTAUTH_SECRET` and `POSTGRES_PASSWORD`, they both should be different secret phrases. The phrase should be wrapped in single or double quotes if any special characters are used.
56
56
57
57
The `NEXTAUTH_URL` should be changed to your domain name _only if you are hosting it somewhere else_.
58
58
@@ -72,7 +72,7 @@ After a few minutes (depending on your internet connection) you can access Linkw
72
72
73
73
:::note
74
74
75
-
The Manual Installation is targeted towards a more technical audience, to take an easier path, go for installation using [Docker](/self-hosting/installation#docker-compose).
75
+
The Manual Installation is targeted towards a more technical audience, to take an easier path, go for installation using [Docker](/self-hosting/installation#docker-).
0 commit comments