mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 12:29:36 +08:00
Update knowhere version for new GetVectorByIds interface (#24034)
Signed-off-by: Yudong Cai <yudong.cai@zilliz.com>
This commit is contained in:
parent
baddf3d438
commit
58192f55f6
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
@ -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_;
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user