ai-cfia / azure-db

Operations related to semantic search on our Azure document index.
MIT License
0 stars 1 forks source link

Implement Pagination to Improve Performance in azure-db #16

Closed k-allagbe closed 7 months ago

k-allagbe commented 7 months ago

Currently, our search functionality experiences significant latency, likely due to inefficient handling of large result sets. The issue stems from iterating over a substantial number of results in a single query, which we suspect triggers numerous network requests, thereby slowing down the response time. To address this, we propose implementing pagination in our Azure DB search queries.

Image

Tasks

Acceptance Criteria

rngadam commented 7 months ago

@k-allagbe were the acceptance criteria tested and passed? where are the tests results?

k-allagbe commented 7 months ago

@k-allagbe were the acceptance criteria tested and passed? where are the tests results?

https://github.com/ai-cfia/azure-db/actions/runs/7822094547/job/21340435423?pr=17

The tests are here: https://github.com/ai-cfia/azure-db/blob/main/azure-ai-search/tests/test_integration.py