fix: doc string & pyi (#41)

This commit is contained in:
Jalin Wang 2026-02-03 10:14:44 +08:00 committed by GitHub
parent 66657f0651
commit ce45478dae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ class HnswIndexParam(VectorIndexParam):
def __init__(
self,
metric_type: _zvec.typing.MetricType = ...,
m: typing.SupportsInt = 100,
m: typing.SupportsInt = 50,
ef_construction: typing.SupportsInt = 500,
quantize_type: _zvec.typing.QuantizeType = ...,
) -> None: ...

View File

@ -307,7 +307,7 @@ Attributes:
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.