open-webui/backend/open_webui/retrieval/vector/dbs
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
..
chroma.py enh/fix: filter content metadata 2025-09-28 20:17:27 -05:00
elasticsearch.py enh/fix: filter content metadata 2025-09-28 20:17:27 -05:00
milvus.py enh/fix: filter content metadata 2025-09-28 20:17:27 -05:00
milvus_multitenancy.py chore: format 2025-09-29 00:58:21 -05:00
opensearch.py enh/fix: filter content metadata 2025-09-28 20:17:27 -05:00
oracle23ai.py refac: oracle23ai 2025-10-14 18:22:48 -05:00
pgvector.py feat: pgvector hnsw index type (#19158) 2025-11-18 04:14:43 -05:00
pinecone.py enh/fix: filter content metadata 2025-09-28 20:17:27 -05:00
qdrant.py chore: format 2025-08-09 23:57:35 +04:00
qdrant_multitenancy.py chore: format 2025-09-29 00:58:21 -05:00
s3vector.py fix: Use get_index() instead of list_indexes() in has_collection() to… (#19238) 2025-11-19 00:19:10 -05:00