Skip to content

fix(deps): upgrade Pillow to 13.0.0 and fastembed to 0.9.1 - #2100

Merged
phernandez merged 2 commits into
mainfrom
fix/1806-pillow-13
Nov 12, 2026
Merged

phernandez merged 2 commits into
mainfrom
fix/1806-pillow-13

Conversation

@phernandez

Copy link
Copy Markdown
Member

Summary

fastembed 0.8 required pillow<13, so the lock stayed on Pillow 12.3.0. Pillow 13.0.0 fixes the ten advisories published in October and November, including GHSA-74r2-7ff9-mjj2, the GIF decoder issue that #1805 worked around. fastembed 0.9.1 allows pillow<14, so fastembed stays a required dependency and Pillow can still be upgraded.

  • pyproject.toml: fastembed>=0.9.1, pillow>=13.0.0. Raising the minimums means PyPI installs get the fixed Pillow, not just this lock.
  • uv.lock: only fastembed (0.8.0 to 0.9.1) and Pillow (12.3.0 to 13.0.0) change.
  • benchmarks/uv.lock and integrations/tau/uv.lock: Pillow upgraded to 13.0.0. The benchmarks lock also moves fastembed to 0.9.1.

python-pptx, the only other package that pulls in Pillow, sets just a minimum (Pillow>=3.3.2), so it doesn't block the upgrade.

Refs #1806. LiteLLM is already optional, so this leaves #1806 with little remaining work.

Verification

  • just fast-check: lint, format, typecheck pass.
  • just fast-test with only benchmarks excluded: 9437 passed, 95 skipped. The FastEmbed and image tests ran, and none of them were skipped.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CMYVL1rjJwNnrvxniz1dDD

fastembed 0.8 capped Pillow below 13, which held the lock at 12.3.0 and
left the Pillow advisories fixed in 13.0.0 reachable (including
GHSA-74r2-7ff9-mjj2, the GIF decoder issue #1805 worked around).
fastembed 0.9.1 allows pillow<14, so raise both minimums and refresh the
benchmarks and tau harness locks, which pinned older Pillow releases.

Refs #1806

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CMYVL1rjJwNnrvxniz1dDD
Signed-off-by: phernandez <paul@basicmachines.co>
@phernandez

Copy link
Copy Markdown
Member Author

Checked that existing embeddings don't change. I embedded four texts with BAAI/bge-small-en-v1.5 (the default) under fastembed 0.8.0 and 0.9.1. One text was longer than 512 tokens. The vectors are identical: max abs diff 0.0, cosine 1.0, float32 both times.

The one visible change came in 0.8.1: the model cache directory is now models--Qdrant--bge-small-en-v1.5-onnx-Q, where it was models--qdrant--bge-small-en-v1.5-onnx-q. The weights are the same. On case-sensitive filesystems (Linux) the model downloads once more, about 67 MB. A Linux setup running offline (HF_HUB_OFFLINE=1) needs one online load first. Cloud's Dockerfile pre-downloads the model at build time, so it picks up the new name, and its pillow>=13.0.0 override can be removed after the re-pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CMYVL1rjJwNnrvxniz1dDD
Signed-off-by: phernandez <paul@basicmachines.co>
@phernandez

Copy link
Copy Markdown
Member Author

Checked the Cloud Fly image against this branch.

  • Lock: I re-pinned apps/cloud to this branch's head (2f39c95) and ran uv lock. Only basic-memory and fastembed (0.8.0 to 0.9.1) change. Cloud already locks Pillow 13.0.0 (its override), onnxruntime 1.26.0, huggingface-hub 1.15.0 and tokenizers 0.23.1, and all of them meet fastembed 0.9.1's requirements.
  • Model download at build time: I built a linux/amd64 image with the same steps as apps/cloud/Dockerfile: Python 3.12.15-slim, FASTEMBED_CACHE_PATH=/app/data/fastembed_cache, both download steps, and the chown to the cloud user. Running as cloud with no network, the cache holds models--Qdrant--bge-small-en-v1.5-onnx-Q and the jina reranker. Both models load from the cache (local_files_only=True), embed (384-dim float32) and rerank.
  • Runtime: none of the Fly configs (cloud, pgq-worker, autoscaler) mount a volume over /app/data or set HF_HUB_OFFLINE. The models baked into the image are the ones that run, so the cache folder rename has no effect on Cloud.

After this merges, Cloud only needs the normal core re-pin. Removing the pillow>=13.0.0 override is optional.

@phernandez
phernandez marked this pull request as ready for review November 12, 2026 15:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T15:43:50.551144Z 2f39c95 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@phernandez
phernandez merged commit 500c372 into main Nov 12, 2026
92 of 93 checks passed
@phernandez
phernandez deleted the fix/1806-pillow-13 branch November 12, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant