feat: Add optional SearXNG deployment for web search #1

Merged
first merged 7 commits from searxng into master 2025-07-23 21:58:37 +00:00
Showing only changes of commit a5ab41ef09 - Show all commits

View file

@ -34,8 +34,12 @@ fi
echo "" echo ""
read -p "Deploy a private SearXNG instance for the research tool? [y/N]: " DEPLOY_SEARXNG read -p "Deploy a private SearXNG instance for the research tool? [y/N]: " DEPLOY_SEARXNG
BRAVE_API_KEY="" BRAVE_API_KEY=""
SEARCH_DOMAIN=""
if [[ "${DEPLOY_SEARXNG,,}" == "y" ]]; then if [[ "${DEPLOY_SEARXNG,,}" == "y" ]]; then
SEARCH_DOMAIN="search.r21.io" # MODIFIED: Prompt for the SearXNG domain instead of hardcoding it.
read -p "Enter the domain for SearXNG (e.g., search.example.com): " SEARCH_DOMAIN
if [[ -z "$SEARCH_DOMAIN" ]]; then echo "❌ SearXNG domain cannot be empty."; exit 1; fi
echo " SearXNG will be deployed to https://$SEARCH_DOMAIN" echo " SearXNG will be deployed to https://$SEARCH_DOMAIN"
read -p "Enter your Brave Search API key (highly recommended, or press Enter): " BRAVE_API_KEY read -p "Enter your Brave Search API key (highly recommended, or press Enter): " BRAVE_API_KEY
fi fi
@ -222,7 +226,7 @@ if [[ "${DEPLOY_SEARXNG,,}" == "y" ]]; then
echo " (This works because the containers are on a private network)." echo " (This works because the containers are on a private network)."
echo " 4. Save settings. You can now enable web search for any model." echo " 4. Save settings. You can now enable web search for any model."
echo "" echo ""
echo " OPTION B: Advanced Python Tool (For custom logic)" echo " OPTION B: Advanced Python Research Tool (For custom logic)"
echo " 1. Go to Settings -> Tools and click 'Add Tool'." echo " 1. Go to Settings -> Tools and click 'Add Tool'."
echo " 2. In the 'Load from URL' field, paste:" echo " 2. In the 'Load from URL' field, paste:"
echo " https://raw.githubusercontent.com/iamarcel/open-webui-utils/main/research_tool.py" echo " https://raw.githubusercontent.com/iamarcel/open-webui-utils/main/research_tool.py"