From 83c87c2d93545046bed402b360a1be041825adf3 Mon Sep 17 00:00:00 2001 From: Silentoplayz <50341825+Silentoplayz@users.noreply.github.com> Date: Sun, 22 Dec 2024 15:21:45 -0500 Subject: [PATCH] Update web_search.md --- docs/tutorials/integrations/web_search.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/tutorials/integrations/web_search.md b/docs/tutorials/integrations/web_search.md index ace3851..5726291 100644 --- a/docs/tutorials/integrations/web_search.md +++ b/docs/tutorials/integrations/web_search.md @@ -298,26 +298,29 @@ Alternatively, you can run SearXNG directly using `docker run`: docker run --name searxng --env-file stack.env -v ./searxng:/etc/searxng:rw -p 1337:8080 --restart unless-stopped --cap-drop ALL --cap-add CHOWN --cap-add SETGID --cap-add SETUID --cap-add DAC_OVERRIDE --log-driver json-file --log-opt max-size=1m,max-file=1 searxng/searxng:latest ``` -**Confirm Connectivity** +## 3. Confirm Connectivity -Confirm connectivity from Open-WebUI container instance: +Confirm connectivity to SearXNG from your Open WebUI container instance in your command line interface: ```bash docker exec -it open-webui curl http://host.docker.internal:1337/search?q=this+is+a+test+query&format=json ``` -## 3. GUI Configuration +## 4. GUI Configuration 1. Navigate to: `Admin Panel` -> `Settings` -> `Web Search` 2. Toggle `Enable Web Search` 3. Set `Web Search Engine` from dropdown menu to `searxng` -4. Set `Searxng Query URL` to examples given: `https:///search?q=` or `http:///search?q=`. **Do note the `/search?q=` part is mandatory.** +4. Set `Searxng Query URL` to either: + * `http://searxng:1337/search?q=` (using the container name and exposed port) + * `http://host.docker.internal:1337/search?q=` (using the `host.docker.internal` DNS name and the host port) + **Do note the `/search?q=` part is mandatory.** 5. Adjust the `Search Result Count` and `Concurrent Requests` values accordingly 6. Save changes ![SearXNG GUI Configuration](/img/tutorial_searxng_config.png) -## 4. Using Web Search in a Chat +## 5. Using Web Search in a Chat To access Web Search, Click on the + next to the message input field.