From 86b3ee8b293cada9aae44a259b46275a94a56b76 Mon Sep 17 00:00:00 2001 From: "Tuan Anh Nguyen Dang (Tadashi_Cin)" Date: Mon, 31 Mar 2025 13:57:40 +0700 Subject: [PATCH] fix: update Dockerfile (#718) #none --- Dockerfile | 4 ++++ libs/kotaemon/pyproject.toml | 1 + 2 files changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index caedcece..02fdb24b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,6 +92,10 @@ RUN --mount=type=ssh \ --mount=type=cache,target=/root/.cache/pip \ pip install "docling<=2.5.2" + +# Download NLTK data from LlamaIndex +RUN python -c "from llama_index.core.readers.base import BaseReader" + # Clean up RUN apt-get autoremove \ && apt-get clean \ diff --git a/libs/kotaemon/pyproject.toml b/libs/kotaemon/pyproject.toml index 3bc7569b..2ab6a8cc 100644 --- a/libs/kotaemon/pyproject.toml +++ b/libs/kotaemon/pyproject.toml @@ -57,6 +57,7 @@ dependencies = [ "trogon>=0.5.0,<0.6", "umap-learn==0.5.5", "tavily-python>=0.4.0", + "pydantic<=2.10.6", ] readme = "README.md" authors = [