Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions bindings/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ set(SVS_RUNTIME_SOURCES
src/IndexSVSFlatImpl.cpp
src/IndexSVSVamanaImpl.cpp
src/training.cpp
src/vamana_index.cpp
src/dynamic_vamana_index.cpp
src/flat_index.cpp
)
Expand Down
7 changes: 7 additions & 0 deletions bindings/cpp/src/training.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
namespace svs {
namespace runtime {

LeanVecTrainingData::~LeanVecTrainingData() = default;

Status LeanVecTrainingData::build(
LeanVecTrainingData** training_data,
size_t dim,
Expand All @@ -43,6 +45,11 @@ Status LeanVecTrainingData::destroy(LeanVecTrainingData* training_data) noexcept
SVS_RUNTIME_TRY_END
}

Status LeanVecTrainingData::save(std::ostream& /*out*/) const noexcept {
// providing an implementation of a virtual function to anchor vtable
return {ErrorCode::NOT_IMPLEMENTED, "Not implemented"};
}

Status
LeanVecTrainingData::load(LeanVecTrainingData** training_data, std::istream& in) noexcept {
SVS_RUNTIME_TRY_BEGIN
Expand Down
25 changes: 25 additions & 0 deletions bindings/cpp/src/vamana_index.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright 2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include "vamana_index.h"

namespace svs {
namespace runtime {

VamanaIndex::~VamanaIndex() = default;

}
} // namespace svs
Loading