open-webui/backend/open_webui/retrieval
Seth Argyle 720af637e6
fix: Use get_index() instead of list_indexes() in has_collection() to… (#19238)
* fix: Use get_index() instead of list_indexes() in has_collection() to handle pagination

Fixes #19233

  Replace list_indexes() pagination scan with direct get_index() lookup
  in has_collection() method. The previous implementation only checked
  the first ~1,000 indexes due to unhandled pagination, causing RAG
  queries to fail for indexes beyond the first page.

  Benefits:
  - Handles buckets with any number of indexes (no pagination needed)
  - ~8x faster (0.19s vs 1.53s in testing)
  - Proper exception handling for ResourceNotFoundException
  - Scales to millions of indexes

* Update s3vector.py

Unneeded exception handling removed to match original OWUI code
2025-11-19 00:19:10 -05:00
..
loaders refac/fix: mineru params 2025-11-11 00:30:11 -05:00
models refac/enh: forward user info header to reranker 2025-07-14 13:59:10 +04:00
vector fix: Use get_index() instead of list_indexes() in has_collection() to… (#19238) 2025-11-19 00:19:10 -05:00
web refac 2025-11-18 04:42:09 -05:00
utils.py feat: Adding file metadata to hybrid search (#19095) 2025-11-18 15:29:07 -05:00