open-webui/backend/open_webui
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
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal refactor: format 2025-08-10 22:28:31 +08:00
migrations refac: group members table db migration 2025-11-17 05:08:45 -05:00
models feat/refac: group members db table (#19239) 2025-11-18 03:59:56 -05:00
retrieval fix: Use get_index() instead of list_indexes() in has_collection() to… (#19238) 2025-11-19 00:19:10 -05:00
routers feat: Adding file metadata to hybrid search (#19095) 2025-11-18 15:29:07 -05:00
socket refac: get event emitter/caller 2025-11-09 23:13:25 -05:00
static refac 2025-08-10 00:02:58 +04:00
storage refac/fix: s3 checksum validation 2025-08-21 12:44:16 +04:00
test chore: format, lint 2025-07-16 15:23:18 +09:00
utils refac 2025-11-18 15:27:26 -05:00
__init__.py Update __init__.py 2025-04-15 09:55:35 +02:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py feat: Adding file metadata to hybrid search (#19095) 2025-11-18 15:29:07 -05:00
constants.py refac: introduce model id length limit 2025-10-08 16:54:06 -05:00
env.py refac 2025-11-13 19:42:32 -05:00
functions.py refac: user valves 2025-09-26 17:49:42 -05:00
main.py feat: Adding file metadata to hybrid search (#19095) 2025-11-18 15:29:07 -05:00
tasks.py 0.6.33 (#18118) 2025-10-07 16:20:27 -05:00