ldak4747

Results 4 issues of ldak4747

1. aios/apps/facility/build_service/build_service/builder/test/OfflineBuilderV2Test.cpp,270行,这里应该生成indexlibv2::document::DocumentPtr吧?否则会在比如aios/storage/indexlib/document/extractor/plain/PrimaryKeyInfoExtractor.cpp的PrimaryKeyInfoExtractor::IsValidDocument函数中,dynamic_cast(doc)返回空,导致不通过,返回false,也就是一条都没有加进去 2. 尝试用旧的normal_document的ConstructNormalDocumentV2方法,生成v2的normal document并转化数据结构继续测,但发现,v2的docBatch在AddDcoument时,会core掉,正在编dbg版本看原因 分支:main dev/1.1.0也会有问题,其他分支无这个单测文件

麻烦请教一个问题,如invert_index的add、update接口,即操作倒排拉链的curd、正排field的curd,麻烦问下提供的是否是线程安全的接口?(如果非线程安全,即需要用户调用层面保证线程安全,是出于什么考虑呢?)谢谢~

### Is there an existing issue for this? - [X] I have searched the existing issues ### Environment ```markdown https://github.com/zilliztech/knowhere.git,main分支 ``` ### Current Behavior 在InvertedIndex::Train中,首先算出全部样本的,非零维的计数总和amount,然后"std::vector vals(amount);"构造vals数组,数组容量是amount,也就是数组前amount成员值都是0。 然后将全部样本的非零维的值,追加到数组vals,也就是vals长度为2*amount,前amount为0,后amount为非0值。 再通过std::nth_element寻找vals的全部成员中,第drop_ratio_build小的,这个很容易就是0。 请问这是符合预期的么? ###...

kind/bug
help wanted
area/knowhere