v4.5.0.5

FoundationVision/VARv4.5.0.5May 21, 2026by sid-swirl

AI Summary

A follow-up patch that fixes a RAG UX bug where the AI Summary appears and then gets replaced by a different summary.

Key Highlights

  • Fixed cache check logic for empty rag_query_items to prevent incorrect regeneration.
  • Ensures one RAG completion per search even under concurrent requests.

Full Release Notes

# SWIRL Community 4.5.0.5 — RAG cache regression fix

Follow-up patch on top of 4.5.0.4 that fixes a long-standing RAG UX bug exposed by 4.5.0.4 smoke testing: **intermittent: the AI Summary appears, then a few seconds later gets replaced by a different AI Summary.**

⭐ PLEASE STAR OUR REPO: [https://github.com/swirlai/swirl-search](https://github.com/swirlai/swirl-search)
🌐 PLEASE VISIT OUR WEBSITE: [https://www.swirlaiconnect.com/](https://www.swirlaiconnect.com/)

---

## What's fixed

**Backend** — `swirl/views_helpers/search_rag.py` (`SearchRag.get_rag_result()`):
- The cache check now correctly treats an empty `rag_query_items` (the typical state of Galaxy's follow-up `GET /sapi/detail-search-rag/?search_id=…`) as 'no filter requested, serve whatever's stored' rather than 'items changed, regenerate'.

## Upgrading

⚠️ **No database migration required.** 4.5.0.5 is a drop-in replacement for 4.5.0.4 (and for any earlier 4.5.0.x).

Docker users:

```
docker pull swirlai/swirl-search:latest
```

See the [Docker Build Guide](https://docs.swirlaiconnect.com/DOCKER_BUILD.html#inspecting-the-published-image) for the SBOM / vulnerability inspection commands.