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>
const std::vector<uint8_t>
VectorDiskAnnIndex<T>::GetVector(const DatasetPtr dataset,
const Config& config) const {
auto res = index_.GetVectorByIds(*dataset, config);
VectorDiskAnnIndex<T>::GetVector(const DatasetPtr dataset) const {
auto res = index_.GetVectorByIds(*dataset);
if (!res.has_value()) {
PanicCodeInfo(
ErrorCodeEnum::UnexpectedError,

View File

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

View File

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

View File

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

View File

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

View File

@ -11,7 +11,7 @@
# 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 ${CMAKE_BUILD_TYPE})