-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add skip_cache parameter to bypass similarity search cache in Feed API (
#2095) * Add skip_cache parameter to bypass similarity search cache in Feed API - Introduced `skip_cache` parameter to Feed API, allowing requests to bypass the similarity search cache when set to `true`. - Updated `search_for_similar_published_fact_checks` in `SmoochSearch` to support cached and non-cached search logic. - Added `search_for_similar_published_fact_checks_no_cache` method to perform non-cached similarity searches. - Modified `FeedResource` to handle and pass the `skip_cache` parameter. - Implemented automated test for `skip_cache` functionality to ensure correct behavior. - Updated logging for better traceability of cache usage in similarity searches. * Add reviewer feedback * Add reviewer feedback
- Loading branch information
Showing
3 changed files
with
31 additions
and
13 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