introduce IVF index implement#456
Conversation
2016613 to
0362266
Compare
| })"; | ||
|
|
||
| ParamPtr | ||
| IVF::MappingExternalParamAndCheck(const JsonType& external_param, |
There was a problem hiding this comment.
MappingExternalParamAndCheck -> CheckAndMappingExternalParam ?
There was a problem hiding this comment.
Sometimes, we need check param valid after mapping
|
|
||
| IVFSearchParameters obj; | ||
|
|
||
| // set obj.ef_search |
There was a problem hiding this comment.
Q: ef_search for IVF is scan buckets count?
There was a problem hiding this comment.
another param,not ef_search
913700f to
39dc759
Compare
Codecov ReportAttention: Patch coverage is @@ Coverage Diff @@
## main #456 +/- ##
==========================================
+ Coverage 91.79% 91.97% +0.18%
==========================================
Files 168 172 +4
Lines 10431 10495 +64
==========================================
+ Hits 9575 9653 +78
+ Misses 856 842 -14
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
e4a7d1a to
c36296b
Compare
f4a5a3e to
a7fe5ba
Compare
70c3f70 to
7af865c
Compare
0a2e331 to
743f069
Compare
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
| bucket_->ScanBucketById(dist.data(), computer, bucket_id); | ||
| for (int j = 0; j < bucket_size; ++j) { | ||
| if (filter == nullptr or filter->CheckValid(labels[j])) { | ||
| if (dist[j] <= radius + 2e-6 and dist[j] < cur_heap_top) { |
There was a problem hiding this comment.
I think all index need this constant, refactor in another PR
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
Signed-off-by: LHT129 <tianlan.lht@antgroup.com> Signed-off-by: Sia Sheerland <x1075956441x@163.com> Signed-off-by: Sia Sheerland <x1075956441x@163.com>
issue: #276