We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afaaeb5 + 300c2b5 commit 6d14f35Copy full SHA for 6d14f35
python_bindings/bindings.cpp
@@ -97,6 +97,8 @@ class Index {
97
else if(space_name=="cosine") {
98
l2space = new hnswlib::InnerProductSpace(dim);
99
normalize=true;
100
+ } else {
101
+ throw new std::runtime_error("Space name must be one of l2, ip, or cosine.");
102
}
103
appr_alg = NULL;
104
ep_added = true;
0 commit comments