forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[history-embeddings] Tests canceling queries and computing embeddings
- Adds tests for canceling query tasks. - Adds tests for using DB as cache and rebuilding DB. SchedulingEmbedder does two things which are specific to the History Embeddings feature: #1 Canceling stale query passages. #2 Removing non-ascii chars before sending the passages to the embedder. These functionalities need to be factored out before we can use the SchedulingEmbedder in the passage_embeddings:: namespace. This CL adds some tests around those functionalities so future changes don't break things. Adding these tests helped identify three potential bugs. #1 the first query in a series of queries always gets processed, which shouldn't. #2 enabling the feature param for removing non-ascii characters causes a crash when the passage is entirely made up of non-ascii characters. #3 attempting to compute embeddings for an empty passage causes a crash. I'll attempt to address these bugs in follow-up changes. Bug: 390241271 Change-Id: I5002b1fbaf6ea5068da405219ba153cce8378faf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6186446 Code-Coverage: [email protected] <[email protected]> Commit-Queue: Moe Ahmadi <[email protected]> Reviewed-by: Orin Jaworski <[email protected]> Cr-Commit-Position: refs/heads/main@{#1409805}
- Loading branch information
Moe Ahmadi
authored and
Chromium LUCI CQ
committed
Jan 22, 2025
1 parent
37cd84a
commit b7ad8fc
Showing
4 changed files
with
210 additions
and
11 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