镜像自地址
https://github.com/meilisearch/MeiliSearch
已同步 2025-07-01 02:48:31 +02:00
Replace the euclidean with a dot product
这个提交包含在:
父节点
8debf6fe81
当前提交
436a10bef4
@ -13,7 +13,7 @@ use roaring::RoaringBitmap;
|
||||
use rstar::RTree;
|
||||
use time::OffsetDateTime;
|
||||
|
||||
use crate::dot_product::Euclidean;
|
||||
use crate::dot_product::DotProduct;
|
||||
use crate::error::{InternalError, UserError};
|
||||
use crate::facet::FacetType;
|
||||
use crate::fields_ids_map::FieldsIdsMap;
|
||||
@ -29,7 +29,7 @@ use crate::{
|
||||
};
|
||||
|
||||
/// The HNSW data-structure that we serialize, fill and search in.
|
||||
pub type Hnsw = hnsw::Hnsw<Euclidean, Vec<f32>, Pcg32, 12, 24>;
|
||||
pub type Hnsw = hnsw::Hnsw<DotProduct, Vec<f32>, Pcg32, 12, 24>;
|
||||
|
||||
pub const DEFAULT_MIN_WORD_LEN_ONE_TYPO: u8 = 5;
|
||||
pub const DEFAULT_MIN_WORD_LEN_TWO_TYPOS: u8 = 9;
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户