ScaNNQueryOptions(
num_leaves_to_search: int = 1,
pre_reordering_num_neighbors: int = -1,
pct_leaves_to_search: typing.Optional[float] = None,
)Query options for ScaNN index.
Parameters |
|
|---|---|
| Name | Description |
num_leaves_to_search |
int
Number of leaves to search. |
pre_reordering_num_neighbors |
int
Number of neighbors to return before reordering. |
pct_leaves_to_search |
Optional[float]
Percentage (0-100, fractional values allowed) of leaves to search. When set, it is sent in addition to |
Methods
to_parameter
to_parameter() -> list[str]Convert index attributes to list of configurations.
to_string
to_string() -> strConvert index attributes to string.
ScaNNQueryOptions
ScaNNQueryOptions(
num_leaves_to_search: int = 1,
pre_reordering_num_neighbors: int = -1,
pct_leaves_to_search: typing.Optional[float] = None,
)Query options for ScaNN index.
| Parameters | |
|---|---|
| Name | Description |
num_leaves_to_search |
int
Number of leaves to search. |
pre_reordering_num_neighbors |
int
Number of neighbors to return before reordering. |
pct_leaves_to_search |
Optional[float]
Percentage (0-100, fractional values allowed) of leaves to search. When set, it is sent in addition to |