Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/tests/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class TestHnswIndexParam:
def test_default(self):
param = HnswIndexParam()
assert param.metric_type == MetricType.IP
assert param.m == 100
assert param.m == 50
assert param.ef_construction == 500
assert param.quantize_type == QuantizeType.UNDEFINED
assert param.type == IndexType.HNSW
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_collection_schema_with_single_field(self):
assert vector.data_type == DataType.VECTOR_INT8
assert vector.dimension == 128
assert vector.index_param.type == IndexType.HNSW
assert vector.index_param.m == 100
assert vector.index_param.m == 50
assert vector.index_param.ef_construction == 500
assert vector.index_param.metric_type == MetricType.IP

Expand Down
4 changes: 2 additions & 2 deletions python/zvec/model/param/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class HnswIndexParam(VectorIndexParam):
Default is ``MetricType.IP`` (inner product).
m (int): Number of bi-directional links created for every new element
during construction. Higher values improve accuracy but increase
memory usage and construction time. Default is 100.
memory usage and construction time. Default is 50.
ef_construction (int): Size of the dynamic candidate list for nearest
neighbors during index construction. Larger values yield better
graph quality at the cost of slower build time. Default is 500.
Expand Down Expand Up @@ -272,7 +272,7 @@ class HnswQueryParam(QueryParam):

Args:
ef (int, optional): Search-time candidate list size.
Higher values improve accuracy. Defaults to 100.
Higher values improve accuracy. Defaults to 300.
radius (float, optional): Search radius for range queries. Default is 0.0.
is_linear (bool, optional): Force linear search. Default is False.
is_using_refiner (bool, optional): Whether to use refiner for the query. Default is False.
Expand Down
2 changes: 1 addition & 1 deletion src/core/interface/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace zvec::core_interface {

constexpr static uint32_t kDefaultHnswEfConstruction = 500;
constexpr static uint32_t kDefaultHnswNeighborCnt = 100;
constexpr static uint32_t kDefaultHnswNeighborCnt = 50;

constexpr static uint32_t kDefaultHnswEfSearch = 300;

Expand Down