Add RAG_WEB_LOADER + Playwright mode + improve stability of search

This commit is contained in:
Rory committed 2025-01-28 23:03:15 -06:00
1 parent b72150c881
commit 4e8b390682
10 files changed
+220 -39

No files matched your search

+9
View File
@@ -3,6 +3,15 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR" || exit
# Add conditional Playwright browser installation
if [[ "${RAG_WEB_LOADER,,}" == "chromium" ]]; then
echo "Installing Playwright browsers..."
playwright install chromium
playwright install-deps chromium
python -c "import nltk; nltk.download('punkt_tab')"
fi
KEY_FILE=.webui_secret_key
PORT="${PORT:-8080}"