Compare commits

...

10 Commits

Author SHA1 Message Date
Ryan Green
fe8b5b31f8 fix: error during deserialization of "INVERTED" index type 2024-10-25 14:55:13 -02:30
Ryan Green
d1d0247014 fix: error during deserialization of "INVERTED" index type 2024-10-25 14:54:31 -02:30
Ryan Green
4bee551465 fix: error during deserialization of "INVERTED" index type 2024-10-25 14:52:29 -02:30
Ryan Green
b898b3dcd6 Fix index type 2024-10-25 14:32:05 -02:30
Ryan Green
b01af0690c Fix index type 2024-10-25 14:30:37 -02:30
Ryan Green
6b64fd1ab6 Fix index type 2024-10-25 14:30:30 -02:30
Ryan Green
460378cdf9 Bump pylance version 2024-10-25 09:55:14 -02:30
Ryan Green
f9d0dd8523 Fix 2024-10-23 11:27:17 -05:00
Ryan Green
9ac7a69e4e Fix tokenizer_config 2024-10-23 11:23:57 -05:00
Ryan Green
ffba946890 bump lance to 0.19.1 2024-10-22 19:41:57 -05:00
4 changed files with 15 additions and 10 deletions

View File

@@ -20,15 +20,15 @@ keywords = ["lancedb", "lance", "database", "vector", "search"]
categories = ["database-implementations"]
[workspace.dependencies]
lance = { "version" = "=0.18.3", "features" = [
lance = { "version" = "=0.19.1", "features" = [
"dynamodb",
], git = "https://github.com/lancedb/lance.git", tag = "v0.18.3-beta.2" }
lance-index = { "version" = "=0.18.3", git = "https://github.com/lancedb/lance.git", tag = "v0.18.3-beta.2" }
lance-linalg = { "version" = "=0.18.3", git = "https://github.com/lancedb/lance.git", tag = "v0.18.3-beta.2" }
lance-table = { "version" = "=0.18.3", git = "https://github.com/lancedb/lance.git", tag = "v0.18.3-beta.2" }
lance-testing = { "version" = "=0.18.3", git = "https://github.com/lancedb/lance.git", tag = "v0.18.3-beta.2" }
lance-datafusion = { "version" = "=0.18.3", git = "https://github.com/lancedb/lance.git", tag = "v0.18.3-beta.2" }
lance-encoding = { "version" = "=0.18.3", git = "https://github.com/lancedb/lance.git", tag = "v0.18.3-beta.2" }
]}
lance-index = { "version" = "=0.19.1"}
lance-linalg = { "version" = "=0.19.1"}
lance-table = { "version" = "=0.19.1"}
lance-testing = { "version" = "=0.19.1"}
lance-datafusion = { "version" = "=0.19.1" }
lance-encoding = { "version" = "=0.19.1" }
# Note that this one does not include pyarrow
arrow = { version = "52.2", optional = false }
arrow-array = "52.2"

View File

@@ -3,7 +3,7 @@ name = "lancedb"
# version in Cargo.toml
dependencies = [
"deprecation",
"pylance==0.18.3-beta.2",
"pylance==0.19.1",
"requests>=2.31.0",
"tqdm>=4.27.0",
"pydantic>=1.10",

View File

@@ -119,7 +119,9 @@ pub enum IndexType {
#[serde(alias = "LABEL_LIST")]
LabelList,
// FTS
#[serde(alias = "INVERTED")]
FTS,
INVERTED,
}
impl std::fmt::Display for IndexType {
@@ -132,6 +134,7 @@ impl std::fmt::Display for IndexType {
Self::Bitmap => write!(f, "BITMAP"),
Self::LabelList => write!(f, "LABEL_LIST"),
Self::FTS => write!(f, "FTS"),
Self::INVERTED => write!(f, "FTS"),
}
}
}

View File

@@ -82,6 +82,7 @@ pub mod merge;
pub use chrono::Duration;
pub use lance::dataset::optimize::CompactionOptions;
pub use lance_index::optimize::OptimizeOptions;
use lance_index::scalar::inverted::TokenizerConfig;
/// Defines the type of column
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -1568,6 +1569,7 @@ impl NativeTable {
let mut dataset = self.dataset.get_mut().await?;
let fts_params = lance_index::scalar::InvertedIndexParams {
with_position: fts_opts.with_position,
tokenizer_config: TokenizerConfig::default()
};
dataset
.create_index(
@@ -2002,7 +2004,7 @@ impl TableInternal for NativeTable {
self.dataset
.get_mut()
.await?
.add_columns(transforms, read_columns)
.add_columns(transforms, read_columns, None)
.await?;
Ok(())
}