chore: bump lance to v0.10.18 (#1287)

https://github.com/lancedb/lance/releases/tag/v0.10.18
This commit is contained in:
Bert
2024-05-09 17:06:26 -03:00
committed by GitHub
parent 4746281b21
commit 805c78bb20
2 changed files with 10 additions and 5 deletions

View File

@@ -14,10 +14,10 @@ keywords = ["lancedb", "lance", "database", "vector", "search"]
categories = ["database-implementations"]
[workspace.dependencies]
lance = { "version" = "=0.10.17", "features" = ["dynamodb"] }
lance-index = { "version" = "=0.10.17" }
lance-linalg = { "version" = "=0.10.17" }
lance-testing = { "version" = "=0.10.17" }
lance = { "version" = "=0.10.18", "features" = ["dynamodb"] }
lance-index = { "version" = "=0.10.18" }
lance-linalg = { "version" = "=0.10.18" }
lance-testing = { "version" = "=0.10.18" }
# Note that this one does not include pyarrow
arrow = { version = "51.0", optional = false }
arrow-array = "51.0"
@@ -29,7 +29,7 @@ arrow-arith = "51.0"
arrow-cast = "51.0"
async-trait = "0"
chrono = "0.4.35"
half = { "version" = "=2.3.1", default-features = false, features = [
half = { "version" = "=2.4.1", default-features = false, features = [
"num-traits",
] }
futures = "0"

View File

@@ -238,6 +238,9 @@ pub enum DistanceType {
/// distance has a range of (-∞, ∞). If the vectors are normalized (i.e. their
/// L2 norm is 1), then dot distance is equivalent to the cosine distance.
Dot,
/// Hamming distance. Hamming distance is a distance metric that measures
/// the number of positions at which the corresponding elements are different.
Hamming,
}
impl From<DistanceType> for LanceDistanceType {
@@ -246,6 +249,7 @@ impl From<DistanceType> for LanceDistanceType {
DistanceType::L2 => Self::L2,
DistanceType::Cosine => Self::Cosine,
DistanceType::Dot => Self::Dot,
DistanceType::Hamming => Self::Hamming,
}
}
}
@@ -256,6 +260,7 @@ impl From<LanceDistanceType> for DistanceType {
LanceDistanceType::L2 => Self::L2,
LanceDistanceType::Cosine => Self::Cosine,
LanceDistanceType::Dot => Self::Dot,
LanceDistanceType::Hamming => Self::Hamming,
}
}
}