[Runtime] Reduce dependency to speed up CI and reduce image size (#3195)

* reduce dependency for runtime

* try making llama-index an optional dependency that's not installed by default

* do not install llama-index in CI

* do not install llama-index in the app docker as well
This commit is contained in:
Xingyao Wang
2024-08-01 01:55:09 +08:00
committed by GitHub
parent 938ed027c2
commit 1d49ef253b
9 changed files with 99 additions and 89 deletions

View File

@@ -141,7 +141,7 @@ install-python-dependencies:
export HNSWLIB_NO_NATIVE=1; \
poetry run pip install chroma-hnswlib; \
fi
@poetry install
@poetry install --without llama-index
@if [ -f "/etc/manjaro-release" ]; then \
echo "$(BLUE)Detected Manjaro Linux. Installing Playwright dependencies...$(RESET)"; \
poetry run pip install playwright; \