Always-on grounded retrieval + role-scoped Ollama models (#62 Phases 1–3) #65
+1
-1
@@ -26,7 +26,7 @@ OLLAMA_BASE_URL=http://127.0.0.1:11434
|
||||
ALLOW_INTERNET_ACCESS=true
|
||||
SEARCH_PROVIDER=searxng
|
||||
SEARCH_FAILOVER_PROVIDER=ddgs
|
||||
SEARXNG_BASE_URL=http://127.0.0.1:8080
|
||||
SEARXNG_BASE_URL=http://127.0.0.1:8088
|
||||
# SEARXNG_TIMEOUT_SECONDS=8
|
||||
|
||||
# Email (SMTP2GO) — optional for local
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ ALLOW_INTERNET_ACCESS=true
|
||||
SEARCH_PROVIDER=searxng
|
||||
SEARCH_FAILOVER_PROVIDER=ddgs
|
||||
# Point at the SearxNG container/service on the LAN (see README "SearxNG").
|
||||
SEARXNG_BASE_URL=http://10.0.0.128:8080
|
||||
SEARXNG_BASE_URL=http://10.0.0.128:8088
|
||||
|
||||
# Email (SMTP2GO)
|
||||
EMAIL_HOST=mail.smtp2go.com
|
||||
|
||||
@@ -94,7 +94,7 @@ with `COMPOSE_DATABASE_URL` if needed.
|
||||
| `ALLOW_INTERNET_ACCESS` | `true` | optional | Gate for live web retrieval |
|
||||
| `SEARCH_PROVIDER` | `searxng` | optional | Primary search provider (#62) |
|
||||
| `SEARCH_FAILOVER_PROVIDER` | `ddgs` | optional | Automatic failover |
|
||||
| `SEARXNG_BASE_URL` | `http://127.0.0.1:8080` | yes if using SearxNG | Self-hosted SearxNG JSON API |
|
||||
| `SEARXNG_BASE_URL` | `http://127.0.0.1:8088` | yes if using SearxNG | Self-hosted SearxNG JSON API |
|
||||
| `EMAIL_HOST_*` | empty | yes (prod/beta) | SMTP2GO |
|
||||
| `CAPTCHA_SECRET_KEY` | empty | recommended | |
|
||||
| `ENABLE_ACCOUNT_REGISTRATION` | `false` | optional | Self-serve sign-up; keep false until ready |
|
||||
@@ -179,7 +179,7 @@ services:
|
||||
volumes:
|
||||
- ./searxng:/etc/searxng:rw
|
||||
environment:
|
||||
- SEARXNG_BASE_URL=http://10.0.0.128:8080/
|
||||
- SEARXNG_BASE_URL=http://10.0.0.128:8088/
|
||||
```
|
||||
|
||||
In `searxng/settings.yml` (created on first start), enable the JSON format:
|
||||
@@ -197,14 +197,14 @@ Then set in `chat_backend_prod.env` / `chat_backend_beta.env`:
|
||||
ALLOW_INTERNET_ACCESS=true
|
||||
SEARCH_PROVIDER=searxng
|
||||
SEARCH_FAILOVER_PROVIDER=ddgs
|
||||
SEARXNG_BASE_URL=http://10.0.0.128:8080
|
||||
SEARXNG_BASE_URL=http://10.0.0.128:8088
|
||||
```
|
||||
|
||||
Firewall: allow `10.0.0.0/24` → `:8080` on the SearxNG host (same pattern as
|
||||
Ollama `:11434`). Verify from a backend container:
|
||||
|
||||
```bash
|
||||
curl -sG 'http://10.0.0.128:8080/search' --data-urlencode 'q=test' -d 'format=json' | head
|
||||
curl -sG 'http://10.0.0.128:8088/search' --data-urlencode 'q=test' -d 'format=json' | head
|
||||
```
|
||||
|
||||
If SearxNG is down, chat still works for non-factual turns; factual turns that
|
||||
|
||||
Reference in New Issue
Block a user