-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check index once per unique index name during save embeddings. (#387)
## Motivation and Context (Why the change? What's the scenario?) I had the same problem as the submitter of this issue: #289. For every embedding during the save process, a call is made to list indexes. Using Azure AI Search, I was getting rate limit errors, i.e. `Azure.RequestFailedException with the message "You are sending too many requests. Please try again later."` + Fix Qdrant connector to handle missing collections similarly to other DBs ## High level description (Approach, Design) Made an adjustment to simply cache indexes that were already checked/created during the save embeddings process. This skips the unnecessary call to ListIndexes for every single embedding. --------- Co-authored-by: spenavagd <[email protected]> Co-authored-by: Devis Lucato <[email protected]>
- Loading branch information
1 parent
c631a64
commit c0b2eef
Showing
9 changed files
with
182 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.