Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove m validation for hnswconfig #1798

Merged
merged 1 commit into from
Apr 27, 2023
Merged
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
3 changes: 1 addition & 2 deletions docs/redoc/master/openapi.json
Original file line number Diff line number Diff line change
@@ -3868,8 +3868,7 @@
"description": "Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.",
"type": "integer",
"format": "uint",
"maximum": 10000,
"minimum": 4,
"minimum": 0,
"nullable": true
},
"ef_construct": {
1 change: 0 additions & 1 deletion lib/collection/src/operations/config_diff.rs
Original file line number Diff line number Diff line change
@@ -37,7 +37,6 @@ pub trait DiffConfig<T: DeserializeOwned + Serialize> {
#[serde(rename_all = "snake_case")]
pub struct HnswConfigDiff {
/// Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.
#[validate(range(min = 4, max = 10_000))]
#[serde(skip_serializing_if = "Option::is_none")]
pub m: Option<usize>,
/// Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.