Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(deps): cap SQLAlchemy below 2.1 after reported segfault (#6969)

LearningCircuit47aa5b7db3f8
diff --git a/changelog.d/6969.bugfix.md b/changelog.d/6969.bugfix.md
new file mode 100644
index 0000000000..02016bcd9e
--- /dev/null
+++ b/changelog.d/6969.bugfix.md
@@ -0,0 +1 @@
+Constrain SQLAlchemy to the tested 2.0 series for fresh installs while the reported 2.1.1 research-time crash is investigated.
diff --git a/pdm.lock b/pdm.lock
index 5f6ab004c4..f57ae9fdd4 100644
--- a/pdm.lock
+++ b/pdm.lock
@@ -5,7 +5,7 @@
groups = ["default", "dev", "mcp"]
strategy = ["inherit_metadata"]
lock_version = "4.5.1"
-content_hash = "sha256:f7a5088e95ffe8ff8bbce3afa888ca168dbc5cf602bb9d2ac8e9ee6d669acdf3"
+content_hash = "sha256:b6771c8300b7cfec0d97c64e472b242caa48fc08d5c797b648d070b71e4652f4"
[[metadata.targets]]
requires_python = ">=3.12,<3.15"
diff --git a/pyproject.toml b/pyproject.toml
index e6eccb2007..c554cdd8cd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -49,7 +49,7 @@ dependencies = [
# regression in exactly the case this pin exists for would be silent.
"werkzeug~=3.1.6",
"alembic~=1.17",
- "sqlalchemy~=2.0",
+ "sqlalchemy>=2.0,<2.1", # #6876: fresh 2.1.1 installs reported a research-time segfault; stay on the tested 2.0 series pending upstream resolution
"sqlalchemy-utc~=0.14",
"wikipedia~=1.4",
"arxiv~=2.4",