diff --git a/Cargo.toml b/Cargo.toml index 263fab98..f37c3fba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,13 +21,15 @@ categories = ["database-implementations"] rust-version = "1.80.0" # TODO: lower this once we upgrade Lance again. [workspace.dependencies] -lance = { "version" = "=0.19.1", "features" = ["dynamodb"] } -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" } +lance = { "version" = "=0.19.2", "features" = [ + "dynamodb", +], git = "https://github.com/lancedb/lance.git", tag = "v0.19.2-beta.3" } +lance-index = { "version" = "=0.19.2", git = "https://github.com/lancedb/lance.git", tag = "v0.19.2-beta.3" } +lance-linalg = { "version" = "=0.19.2", git = "https://github.com/lancedb/lance.git", tag = "v0.19.2-beta.3" } +lance-table = { "version" = "=0.19.2", git = "https://github.com/lancedb/lance.git", tag = "v0.19.2-beta.3" } +lance-testing = { "version" = "=0.19.2", git = "https://github.com/lancedb/lance.git", tag = "v0.19.2-beta.3" } +lance-datafusion = { "version" = "=0.19.2", git = "https://github.com/lancedb/lance.git", tag = "v0.19.2-beta.3" } +lance-encoding = { "version" = "=0.19.2", git = "https://github.com/lancedb/lance.git", tag = "v0.19.2-beta.3" } # Note that this one does not include pyarrow arrow = { version = "52.2", optional = false } arrow-array = "52.2" diff --git a/python/pyproject.toml b/python/pyproject.toml index 10dc7375..170f947b 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -3,7 +3,7 @@ name = "lancedb" # version in Cargo.toml dependencies = [ "deprecation", - "pylance==0.19.1", + "pylance==0.19.2-beta.3", "requests>=2.31.0", "tqdm>=4.27.0", "pydantic>=1.10", diff --git a/python/python/lancedb/rerankers/linear_combination.py b/python/python/lancedb/rerankers/linear_combination.py index 8bcfb5e3..1aa8d6a1 100644 --- a/python/python/lancedb/rerankers/linear_combination.py +++ b/python/python/lancedb/rerankers/linear_combination.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from numpy import NaN +from numpy import nan import pyarrow as pa from .base import Reranker @@ -71,7 +71,7 @@ class LinearCombinationReranker(Reranker): elif self.score == "all": results = results.append_column( "_distance", - pa.array([NaN] * len(fts_results), type=pa.float32()), + pa.array([nan] * len(fts_results), type=pa.float32()), ) return results @@ -92,7 +92,7 @@ class LinearCombinationReranker(Reranker): elif self.score == "all": results = results.append_column( "_score", - pa.array([NaN] * len(vector_results), type=pa.float32()), + pa.array([nan] * len(vector_results), type=pa.float32()), ) return results