Compare commits

...

7 Commits

Author SHA1 Message Date
Lance Release
40f0dbb64d Bump version: 0.19.1-beta.1 → 0.19.1-beta.2 2025-02-13 04:39:19 +00:00
BubbleCal
3b19e96ae7 fix: panic when field id doesn't equal to field index (#2116)
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
2025-02-13 12:38:35 +08:00
Will Jones
78a17ad54c chore: improve dev instructions for Python (#2088)
Closes #2042
2025-02-12 14:08:52 -08:00
Lance Release
a8e6b491e2 Updating package-lock.json 2025-02-11 22:05:54 +00:00
Lance Release
cea541ca46 Updating package-lock.json 2025-02-11 20:56:22 +00:00
Lance Release
873ffc1042 Updating package-lock.json 2025-02-11 20:56:05 +00:00
Lance Release
83273ad997 Bump version: 0.16.1-beta.0 → 0.16.1-beta.1 2025-02-11 20:55:43 +00:00
25 changed files with 87 additions and 72 deletions

View File

@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.16.1-beta.0"
current_version = "0.16.1-beta.1"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.

8
Cargo.lock generated
View File

@@ -3966,7 +3966,7 @@ dependencies = [
[[package]]
name = "lancedb"
version = "0.16.1-beta.0"
version = "0.16.1-beta.1"
dependencies = [
"arrow",
"arrow-array",
@@ -4050,7 +4050,7 @@ dependencies = [
[[package]]
name = "lancedb-node"
version = "0.16.1-beta.0"
version = "0.16.1-beta.1"
dependencies = [
"arrow-array",
"arrow-ipc",
@@ -4075,7 +4075,7 @@ dependencies = [
[[package]]
name = "lancedb-nodejs"
version = "0.16.1-beta.0"
version = "0.16.1-beta.1"
dependencies = [
"arrow-array",
"arrow-ipc",
@@ -4093,7 +4093,7 @@ dependencies = [
[[package]]
name = "lancedb-python"
version = "0.19.1-beta.0"
version = "0.19.1-beta.1"
dependencies = [
"arrow",
"env_logger",

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>com.lancedb</groupId>
<artifactId>lancedb-parent</artifactId>
<version>0.16.1-beta.0</version>
<version>0.16.1-beta.1</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -6,7 +6,7 @@
<groupId>com.lancedb</groupId>
<artifactId>lancedb-parent</artifactId>
<version>0.16.1-beta.0</version>
<version>0.16.1-beta.1</version>
<packaging>pom</packaging>
<name>LanceDB Parent</name>

68
node/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "vectordb",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vectordb",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"cpu": [
"x64",
"arm64"
@@ -52,14 +52,14 @@
"uuid": "^9.0.0"
},
"optionalDependencies": {
"@lancedb/vectordb-darwin-arm64": "0.16.1-beta.0",
"@lancedb/vectordb-darwin-x64": "0.16.1-beta.0",
"@lancedb/vectordb-linux-arm64-gnu": "0.16.1-beta.0",
"@lancedb/vectordb-linux-arm64-musl": "0.16.1-beta.0",
"@lancedb/vectordb-linux-x64-gnu": "0.16.1-beta.0",
"@lancedb/vectordb-linux-x64-musl": "0.16.1-beta.0",
"@lancedb/vectordb-win32-arm64-msvc": "0.16.1-beta.0",
"@lancedb/vectordb-win32-x64-msvc": "0.16.1-beta.0"
"@lancedb/vectordb-darwin-arm64": "0.16.1-beta.1",
"@lancedb/vectordb-darwin-x64": "0.16.1-beta.1",
"@lancedb/vectordb-linux-arm64-gnu": "0.16.1-beta.1",
"@lancedb/vectordb-linux-arm64-musl": "0.16.1-beta.1",
"@lancedb/vectordb-linux-x64-gnu": "0.16.1-beta.1",
"@lancedb/vectordb-linux-x64-musl": "0.16.1-beta.1",
"@lancedb/vectordb-win32-arm64-msvc": "0.16.1-beta.1",
"@lancedb/vectordb-win32-x64-msvc": "0.16.1-beta.1"
},
"peerDependencies": {
"@apache-arrow/ts": "^14.0.2",
@@ -330,9 +330,9 @@
}
},
"node_modules/@lancedb/vectordb-darwin-arm64": {
"version": "0.16.1-beta.0",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.16.1-beta.0.tgz",
"integrity": "sha512-wfPwpPB0ml6hjnyrMzaF/jKuq2oKt8w8sY9B6ZxmTh2JBCij+vvNUtDIxGkInTPr+EYVcQdhdtzkkzTBX5GQLg==",
"version": "0.16.1-beta.1",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.16.1-beta.1.tgz",
"integrity": "sha512-dV/I7K9a8OZUk6JaY1mOFRCtq0+ae2erRaDe6AQVeA6t+IVClQaYkHiYUQa5wHqN0QTb2GU7qUCRgA8ZLilVuw==",
"cpu": [
"arm64"
],
@@ -343,9 +343,9 @@
]
},
"node_modules/@lancedb/vectordb-darwin-x64": {
"version": "0.16.1-beta.0",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-x64/-/vectordb-darwin-x64-0.16.1-beta.0.tgz",
"integrity": "sha512-cTRH2q2x48UOJ5n+dBYJr3gH5gDhq/aUbu281Ie0wHpNtlVwFXOrYdAlqhEmDPe3Pj61iua/mcnyWficsUD1gg==",
"version": "0.16.1-beta.1",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-x64/-/vectordb-darwin-x64-0.16.1-beta.1.tgz",
"integrity": "sha512-Fyn9zTDUrYK/bjriHSu/0TiIA7NJmjQQxqzjcwFOMsghL8D0FQuxqHYWKoJSaJv6me6Kd41R4qesC9mrt2ZGDw==",
"cpu": [
"x64"
],
@@ -356,9 +356,9 @@
]
},
"node_modules/@lancedb/vectordb-linux-arm64-gnu": {
"version": "0.16.1-beta.0",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-gnu/-/vectordb-linux-arm64-gnu-0.16.1-beta.0.tgz",
"integrity": "sha512-NYHCM/Bcfvv11tGRzgpqQFqjAJsQrMLdNXy9r+qRmyNvAs482jK5VOoD3ckN4XisbxLB04APZSIz+s/edNCeBQ==",
"version": "0.16.1-beta.1",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-gnu/-/vectordb-linux-arm64-gnu-0.16.1-beta.1.tgz",
"integrity": "sha512-2vcSfg6pVzEkA7tqQssBQgnf7Rbw5fp1xdhnd0X5h4z6Xqs6CpynbkfsyMjBRuL7bDv4phl1lvJmlb3Zfre7mg==",
"cpu": [
"arm64"
],
@@ -369,9 +369,9 @@
]
},
"node_modules/@lancedb/vectordb-linux-arm64-musl": {
"version": "0.16.1-beta.0",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-musl/-/vectordb-linux-arm64-musl-0.16.1-beta.0.tgz",
"integrity": "sha512-GU3sWKvYZ0YVJ+TCBarWfIy7skVU1otx78um81q+8NtX3b1bxKa15LDWWEU6ToXZbEat72OmIZRJ+AIgjdRcoQ==",
"version": "0.16.1-beta.1",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-musl/-/vectordb-linux-arm64-musl-0.16.1-beta.1.tgz",
"integrity": "sha512-rxE/G2PRKTU+fi5j1ojBV9dKfVLKGLnKgLezGryPkKwMYokCQ8kGxohKTmrmLaclXZpBDQo4AYIIE0oJhXG04g==",
"cpu": [
"arm64"
],
@@ -382,9 +382,9 @@
]
},
"node_modules/@lancedb/vectordb-linux-x64-gnu": {
"version": "0.16.1-beta.0",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.16.1-beta.0.tgz",
"integrity": "sha512-Pjj5SH33jIL6CKfNJfW9ISDEpJI/VOhhKx1QN50ndvAjUFm2xH9i654wPX2QzyZx7Qb/+5jTKnAuYSc8Ev/Fyg==",
"version": "0.16.1-beta.1",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.16.1-beta.1.tgz",
"integrity": "sha512-XWqRMif+wVTfcAPQI9n/H6eNmfwPHWBo4e0SAdWw+eifaBDxrcSTDhPpIrW+NGTJMhlm01rD7Qzh4j0y/Vcy5w==",
"cpu": [
"x64"
],
@@ -395,9 +395,9 @@
]
},
"node_modules/@lancedb/vectordb-linux-x64-musl": {
"version": "0.16.1-beta.0",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-musl/-/vectordb-linux-x64-musl-0.16.1-beta.0.tgz",
"integrity": "sha512-rIGTxcUtRiP3wVp7icND5XtevSmr5RFglednyDqpd+Ly6Raek1LoIrPHFuVnpVUDZuq4Hu7/sgX/yT4OB7kIIA==",
"version": "0.16.1-beta.1",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-musl/-/vectordb-linux-x64-musl-0.16.1-beta.1.tgz",
"integrity": "sha512-W/OV5aXAbqhQQ8NYLJG5W/ZdHwpfjiS/9VTVVo44cOznCO6tijiSsrLYIyIw/rHU+ORhYi7My+5+JmkrIoQIgQ==",
"cpu": [
"x64"
],
@@ -408,9 +408,9 @@
]
},
"node_modules/@lancedb/vectordb-win32-arm64-msvc": {
"version": "0.16.1-beta.0",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-arm64-msvc/-/vectordb-win32-arm64-msvc-0.16.1-beta.0.tgz",
"integrity": "sha512-rho0bc+LW9UHM7ZX0Rc6T2pM1hgHFvvhp5nt+4MF7wq/9N3JR6AiMwg1p0nLKu3yjjLkBjRGu+uxjgG/IqdPpw==",
"version": "0.16.1-beta.1",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-arm64-msvc/-/vectordb-win32-arm64-msvc-0.16.1-beta.1.tgz",
"integrity": "sha512-jy18KmJUem+lInjODNfPLSXM8Dmb9xydcab/IoSPB+6qhEn/QC0HW3R1KkR3I6cfryYkEXsNd35pNdtajn9DsQ==",
"cpu": [
"arm64"
],
@@ -421,9 +421,9 @@
]
},
"node_modules/@lancedb/vectordb-win32-x64-msvc": {
"version": "0.16.1-beta.0",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-x64-msvc/-/vectordb-win32-x64-msvc-0.16.1-beta.0.tgz",
"integrity": "sha512-KJ+qKh/dEmisnZJxbc9ocuwyQdyyQpivXyoAsjEc+JGbGP2gTMOw05q900q2eaLB8TQMeQQ4QGnu4gQZGTuxzg==",
"version": "0.16.1-beta.1",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-x64-msvc/-/vectordb-win32-x64-msvc-0.16.1-beta.1.tgz",
"integrity": "sha512-ObGYHAkvyOxJA3QTxMukXaHCe29J2Pbsm90w2c+E3zGb8K5Xe4pLTqojGEDYrtNKZhf2d9YMsoQq8dg6mLsbag==",
"cpu": [
"x64"
],

View File

@@ -1,6 +1,6 @@
{
"name": "vectordb",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"description": " Serverless, low-latency vector database for AI applications",
"private": false,
"main": "dist/index.js",
@@ -92,13 +92,13 @@
}
},
"optionalDependencies": {
"@lancedb/vectordb-darwin-x64": "0.16.1-beta.0",
"@lancedb/vectordb-darwin-arm64": "0.16.1-beta.0",
"@lancedb/vectordb-linux-x64-gnu": "0.16.1-beta.0",
"@lancedb/vectordb-linux-arm64-gnu": "0.16.1-beta.0",
"@lancedb/vectordb-linux-x64-musl": "0.16.1-beta.0",
"@lancedb/vectordb-linux-arm64-musl": "0.16.1-beta.0",
"@lancedb/vectordb-win32-x64-msvc": "0.16.1-beta.0",
"@lancedb/vectordb-win32-arm64-msvc": "0.16.1-beta.0"
"@lancedb/vectordb-darwin-x64": "0.16.1-beta.1",
"@lancedb/vectordb-darwin-arm64": "0.16.1-beta.1",
"@lancedb/vectordb-linux-x64-gnu": "0.16.1-beta.1",
"@lancedb/vectordb-linux-arm64-gnu": "0.16.1-beta.1",
"@lancedb/vectordb-linux-x64-musl": "0.16.1-beta.1",
"@lancedb/vectordb-linux-arm64-musl": "0.16.1-beta.1",
"@lancedb/vectordb-win32-x64-msvc": "0.16.1-beta.1",
"@lancedb/vectordb-win32-arm64-msvc": "0.16.1-beta.1"
}
}

View File

@@ -1,7 +1,7 @@
[package]
name = "lancedb-nodejs"
edition.workspace = true
version = "0.16.1-beta.0"
version = "0.16.1-beta.1"
license.workspace = true
description.workspace = true
repository.workspace = true

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-darwin-arm64",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"os": ["darwin"],
"cpu": ["arm64"],
"main": "lancedb.darwin-arm64.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-darwin-x64",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"os": ["darwin"],
"cpu": ["x64"],
"main": "lancedb.darwin-x64.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-linux-arm64-gnu",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"os": ["linux"],
"cpu": ["arm64"],
"main": "lancedb.linux-arm64-gnu.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-linux-arm64-musl",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"os": ["linux"],
"cpu": ["arm64"],
"main": "lancedb.linux-arm64-musl.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-linux-x64-gnu",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"os": ["linux"],
"cpu": ["x64"],
"main": "lancedb.linux-x64-gnu.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-linux-x64-musl",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"os": ["linux"],
"cpu": ["x64"],
"main": "lancedb.linux-x64-musl.node",

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-win32-arm64-msvc",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"os": [
"win32"
],

View File

@@ -1,6 +1,6 @@
{
"name": "@lancedb/lancedb-win32-x64-msvc",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"os": ["win32"],
"cpu": ["x64"],
"main": "lancedb.win32-x64-msvc.node",

View File

@@ -1,12 +1,12 @@
{
"name": "@lancedb/lancedb",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lancedb/lancedb",
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"cpu": [
"x64",
"arm64"

View File

@@ -11,7 +11,7 @@
"ann"
],
"private": false,
"version": "0.16.1-beta.0",
"version": "0.16.1-beta.1",
"main": "dist/index.js",
"exports": {
".": "./dist/index.js",

View File

@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.19.1-beta.1"
current_version = "0.19.1-beta.2"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.

View File

@@ -1,6 +1,6 @@
[package]
name = "lancedb-python"
version = "0.19.1-beta.1"
version = "0.19.1-beta.2"
edition.workspace = true
description = "Python bindings for LanceDB"
license.workspace = true

View File

@@ -29,4 +29,4 @@ doctest: ## Run documentation tests.
.PHONY: test
test: ## Run tests.
pytest python/tests -vv --durations=10 -m "not slow"
pytest python/tests -vv --durations=10 -m "not slow and not s3_test"

View File

@@ -341,6 +341,7 @@ def test_add_optional_vector(tmp_path):
assert not (np.abs(tbl.to_pandas()["vector"][0]) < 1e-6).all()
@pytest.mark.slow
@pytest.mark.parametrize(
"embedding_type",
[

View File

@@ -32,15 +32,16 @@ def make_mock_http_handler(handler):
@contextlib.contextmanager
def mock_lancedb_connection(handler):
with http.server.HTTPServer(
("localhost", 8080), make_mock_http_handler(handler)
("localhost", 0), make_mock_http_handler(handler)
) as server:
port = server.server_address[1]
handle = threading.Thread(target=server.serve_forever)
handle.start()
db = lancedb.connect(
"db://dev",
api_key="fake",
host_override="http://localhost:8080",
host_override=f"http://localhost:{port}",
client_config={
"retry_config": {"retries": 2},
"timeout_config": {
@@ -59,15 +60,16 @@ def mock_lancedb_connection(handler):
@contextlib.asynccontextmanager
async def mock_lancedb_connection_async(handler, **client_config):
with http.server.HTTPServer(
("localhost", 8080), make_mock_http_handler(handler)
("localhost", 0), make_mock_http_handler(handler)
) as server:
port = server.server_address[1]
handle = threading.Thread(target=server.serve_forever)
handle.start()
db = await lancedb.connect_async(
"db://dev",
api_key="fake",
host_override="http://localhost:8080",
host_override=f"http://localhost:{port}",
client_config={
"retry_config": {"retries": 2},
"timeout_config": {

View File

@@ -1,6 +1,6 @@
[package]
name = "lancedb-node"
version = "0.16.1-beta.0"
version = "0.16.1-beta.1"
description = "Serverless, low-latency vector database for AI applications"
license.workspace = true
edition.workspace = true

View File

@@ -1,6 +1,6 @@
[package]
name = "lancedb"
version = "0.16.1-beta.0"
version = "0.16.1-beta.1"
edition.workspace = true
description = "LanceDB: A serverless, low-latency vector database for AI applications"
license.workspace = true

View File

@@ -23,7 +23,19 @@ impl VectorIndex {
let fields = index
.fields
.iter()
.map(|i| manifest.schema.fields[*i as usize].name.clone())
.map(|field_id| {
manifest
.schema
.field_by_id(*field_id)
.unwrap_or_else(|| {
panic!(
"field {field_id} of index {} must exist in schema",
index.name
)
})
.name
.clone()
})
.collect();
Self {
columns: fields,