Skip to content

Commit

Permalink
Add benchmark support for radial search
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei committed Jun 4, 2024
1 parent f194726 commit 3aa080e
Show file tree
Hide file tree
Showing 4 changed files with 443 additions and 122 deletions.
8 changes: 8 additions & 0 deletions osbenchmark/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class Context(Enum):
INDEX = 1
QUERY = 2
NEIGHBORS = 3
MAX_DISTANCE_NEIGHBORS = 4
MIN_SCORE_NEIGHBORS = 5


class DataSet(ABC):
Expand Down Expand Up @@ -141,6 +143,12 @@ def parse_context(context: Context) -> str:
if context == Context.QUERY:
return "test"

if context == Context.MAX_DISTANCE_NEIGHBORS:
return "max_distance_neighbors"

if context == Context.MIN_SCORE_NEIGHBORS:
return "min_score_neighbors"

raise Exception("Unsupported context")


Expand Down
Loading

0 comments on commit 3aa080e

Please sign in to comment.