Update knowhere version for new GetVectorByIds interface (#24034)

Signed-off-by: Yudong Cai <yudong.cai@zilliz.com>
This commit is contained in:
Cai Yudong 2023-05-11 18:05:20 +08:00 committed by GitHub
parent baddf3d438
commit 58192f55f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 12 deletions

View File

@ -238,9 +238,8 @@ VectorDiskAnnIndex<T>::HasRawData() const {
template <typename T> template <typename T>
const std::vector<uint8_t> const std::vector<uint8_t>
VectorDiskAnnIndex<T>::GetVector(const DatasetPtr dataset, VectorDiskAnnIndex<T>::GetVector(const DatasetPtr dataset) const {
const Config& config) const { auto res = index_.GetVectorByIds(*dataset);
auto res = index_.GetVectorByIds(*dataset, config);
if (!res.has_value()) { if (!res.has_value()) {
PanicCodeInfo( PanicCodeInfo(
ErrorCodeEnum::UnexpectedError, ErrorCodeEnum::UnexpectedError,

View File

@ -65,8 +65,7 @@ class VectorDiskAnnIndex : public VectorIndex {
HasRawData() const override; HasRawData() const override;
const std::vector<uint8_t> const std::vector<uint8_t>
GetVector(const DatasetPtr dataset, GetVector(const DatasetPtr dataset) const override;
const Config& config = {}) const override;
void void
CleanLocalData() override; CleanLocalData() override;

View File

@ -60,7 +60,7 @@ class VectorIndex : public IndexBase {
HasRawData() const = 0; HasRawData() const = 0;
virtual const std::vector<uint8_t> virtual const std::vector<uint8_t>
GetVector(const DatasetPtr dataset, const Config& config = {}) const = 0; GetVector(const DatasetPtr dataset) const = 0;
IndexType IndexType
GetIndexType() const { GetIndexType() const {

View File

@ -165,9 +165,8 @@ VectorMemIndex::HasRawData() const {
} }
const std::vector<uint8_t> const std::vector<uint8_t>
VectorMemIndex::GetVector(const DatasetPtr dataset, VectorMemIndex::GetVector(const DatasetPtr dataset) const {
const Config& config) const { auto res = index_.GetVectorByIds(*dataset);
auto res = index_.GetVectorByIds(*dataset, config);
if (!res.has_value()) { if (!res.has_value()) {
PanicCodeInfo( PanicCodeInfo(
ErrorCodeEnum::UnexpectedError, ErrorCodeEnum::UnexpectedError,

View File

@ -58,8 +58,7 @@ class VectorMemIndex : public VectorIndex {
HasRawData() const override; HasRawData() const override;
const std::vector<uint8_t> const std::vector<uint8_t>
GetVector(const DatasetPtr dataset, GetVector(const DatasetPtr dataset) const override;
const Config& config = {}) const override;
protected: protected:
Config config_; Config config_;

View File

@ -11,7 +11,7 @@
# or implied. See the License for the specific language governing permissions and limitations under the License. # or implied. See the License for the specific language governing permissions and limitations under the License.
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
set( KNOWHERE_VERSION a77607d ) set( KNOWHERE_VERSION fbf2b6e6 )
message(STATUS "Building knowhere-${KNOWHERE_SOURCE_VER} from source") message(STATUS "Building knowhere-${KNOWHERE_SOURCE_VER} from source")
message(STATUS ${CMAKE_BUILD_TYPE}) message(STATUS ${CMAKE_BUILD_TYPE})