Compare commits

...

9 Commits

Author SHA1 Message Date
Lance Release
380c1572f3 Bump version: 0.1.16 → 0.1.17 2023-07-21 22:39:06 +00:00
gsilvestrin
4383848d53 feat(node): Add Linux ARM build (#348) 2023-07-21 15:33:02 -07:00
gsilvestrin
473c43860c bugfix: Set Github token when pushing changes (#351) 2023-07-21 15:31:44 -07:00
gsilvestrin
17cf244e53 Updating package-lock.json (#347) 2023-07-20 14:44:10 -07:00
Leon Yee
0b60694df4 [docs] typo fix (#346) 2023-07-20 14:33:56 -07:00
Lance Release
600da476e8 Updating package-lock.json 2023-07-20 20:24:54 +00:00
Lance Release
458217783c Bump version: 0.1.15 → 0.1.16 2023-07-20 20:24:37 +00:00
gsilvestrin
21b1a71a6b bugfix(node): Don't persist credentials on make-release-commit.yml (#345) 2023-07-20 13:24:06 -07:00
gsilvestrin
2d899675e8 bugfix(node): Make release task can't push to repo (#344) 2023-07-20 13:15:29 -07:00
11 changed files with 178 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.15
current_version = 0.1.17
commit = True
message = Bump version: {current_version} → {new_version}
tag = True

View File

@@ -29,6 +29,7 @@ jobs:
uses: actions/checkout@v3
with:
ref: main
persist-credentials: false
fetch-depth: 0
lfs: true
- name: Set git configs for bumpversion
@@ -44,6 +45,15 @@ jobs:
run: |
pip install bump2version
bumpversion --verbose ${{ inputs.part }}
git push
- name: Push new version and tag
if: ${{ inputs.dry_run }} == "false"
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.LANCEDB_RELEASE_TOKEN }}
branch: main
tags: true
- uses: ./.github/workflows/update_package_lock
if: ${{ inputs.dry_run }} == "false"
with:
github_token: ${{ secrets.LANCEDB_RELEASE_TOKEN }}

View File

@@ -35,7 +35,7 @@ jobs:
with:
name: node-package
path: |
node/lancedb-vectordb-*.tgz
node/vectordb-*.tgz
node-macos:
runs-on: macos-12
@@ -116,6 +116,33 @@ jobs:
path: |
node/dist/lancedb-vectordb-linux*.tgz
node-linux-arm:
name: node-linux (aarch64-unknown-linux-gnu)
runs-on: buildjet-4vcpu-ubuntu-2204-arm
# Only runs on tags that matches the make-release action
if: startsWith(github.ref, 'refs/tags/v')
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Change owner to root (for npm)
# The docker container is run as root, so we need the files to be owned by root
# Otherwise npm is a nightmare: https://github.com/npm/cli/issues/3773
run: sudo chown -R root:root .
- name: Build Linux GNU native node modules
run: |
docker run \
-v $(pwd):/io -w /io \
rust:1.70-bookworm \
bash ci/build_linux_artifacts.sh aarch64-unknown-linux-gnu
- name: Upload Linux Artifacts
uses: actions/upload-artifact@v3
with:
name: native-linux-arm
path: |
node/dist/lancedb-vectordb-linux*.tgz
node-windows:
runs-on: windows-2022
# Only runs on tags that matches the make-release action
@@ -150,7 +177,7 @@ jobs:
node/dist/lancedb-vectordb-win32*.tgz
release:
needs: [node, node-macos, node-linux, node-windows]
needs: [node, node-macos, node-linux, node-linux-arm, node-windows]
runs-on: ubuntu-latest
# Only runs on tags that matches the make-release action
if: startsWith(github.ref, 'refs/tags/v')
@@ -177,4 +204,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main
persist-credentials: false
fetch-depth: 0
lfs: true
- uses: ./.github/workflows/update_package_lock
with:
github_token: ${{ secrets.LANCEDB_RELEASE_TOKEN }}

View File

@@ -1,6 +1,11 @@
name: update_package_lock
description: "Update node's package.lock"
inputs:
github_token:
required: true
description: "github token for the repo"
runs:
using: "composite"
steps:
@@ -18,5 +23,11 @@ runs:
npm install
git add package-lock.json
git commit -m "Updating package-lock.json"
git push
shell: bash
- name: Push changes
if: ${{ inputs.dry_run }} == "false"
uses: ad-m/github-push-action@master
with:
github_token: ${{ inputs.github_token }}
branch: main
tags: true

View File

@@ -9,4 +9,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main
persist-credentials: false
fetch-depth: 0
lfs: true
- uses: ./.github/workflows/update_package_lock
with:
github_token: ${{ secrets.LANCEDB_RELEASE_TOKEN }}

View File

@@ -55,7 +55,11 @@ build_node_binary() {
# We don't pass in target, since the native target here already matches
# We need to pass OPENSSL_LIB_DIR and OPENSSL_INCLUDE_DIR for static build to work https://github.com/sfackler/rust-openssl/issues/877
OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu OPENSSL_INCLUDE_DIR=/usr/include/openssl/ npm run build-release
if [[ $1 == aarch64-* ]]; then
OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu OPENSSL_INCLUDE_DIR=/usr/include/openssl/ npm run build-release
else
OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu OPENSSL_INCLUDE_DIR=/usr/include/openssl/ npm run build-release
fi
npm run pack-build
popd

View File

@@ -1,6 +1,6 @@
# Vector embedding search using TransformersJS
## Embed and query data from LacneDB using TransformersJS
## Embed and query data from LanceDB using TransformersJS
<img id="splash" width="400" alt="transformersjs" src="https://github.com/lancedb/lancedb/assets/43097991/88a31e30-3d6f-4eef-9216-4b7c688f1b4f">

104
node/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "vectordb",
"version": "0.1.15",
"version": "0.1.16",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "vectordb",
"version": "0.1.15",
"version": "0.1.16",
"cpu": [
"x64",
"arm64"
@@ -51,11 +51,11 @@
"typescript": "*"
},
"optionalDependencies": {
"@lancedb/vectordb-darwin-arm64": "0.1.15",
"@lancedb/vectordb-darwin-x64": "0.1.15",
"@lancedb/vectordb-linux-arm64-gnu": "0.1.15",
"@lancedb/vectordb-linux-x64-gnu": "0.1.15",
"@lancedb/vectordb-win32-x64-msvc": "0.1.15"
"@lancedb/vectordb-darwin-arm64": "0.1.16",
"@lancedb/vectordb-darwin-x64": "0.1.16",
"@lancedb/vectordb-linux-arm64-gnu": "0.1.16",
"@lancedb/vectordb-linux-x64-gnu": "0.1.16",
"@lancedb/vectordb-win32-x64-msvc": "0.1.16"
}
},
"node_modules/@apache-arrow/ts": {
@@ -223,6 +223,66 @@
"@jridgewell/sourcemap-codec": "^1.4.10"
}
},
"node_modules/@lancedb/vectordb-darwin-arm64": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.1.16.tgz",
"integrity": "sha512-HMREbYBUfmjgtKCLkktqbz2DT1DAMDgphA2KYK7qwPTymxGLWxYjER/alHnhB4oyxHFBH1wvaqKRlV5ZYN0u8A==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"darwin"
]
},
"node_modules/@lancedb/vectordb-darwin-x64": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-x64/-/vectordb-darwin-x64-0.1.16.tgz",
"integrity": "sha512-vrvOLMK1GnDtTi2lma4zhTto8TSo3dcZBBsdOmprWqMpv8VtVzqEwiDzKO5pazZGGgP0WyL1tjVJ/Z9qFFItwQ==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"darwin"
]
},
"node_modules/@lancedb/vectordb-linux-arm64-gnu": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-gnu/-/vectordb-linux-arm64-gnu-0.1.16.tgz",
"integrity": "sha512-CPKV4PPg9YwP73AozDnLTGLt0C49HefSd1i9uJC7Ef5gjLgQ7Qt2Y2mLsFUPFxrgoC7BJF4c1kksUTK4CGyDoA==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"linux"
]
},
"node_modules/@lancedb/vectordb-linux-x64-gnu": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.1.16.tgz",
"integrity": "sha512-CkUYB09WaNzzS5sCN3SG+fLKSt/3494sL2c/OjZBXF04GsIKH849nSzAOZaustxCEprYyaA62OWEPW9WDAHazQ==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"linux"
]
},
"node_modules/@lancedb/vectordb-win32-x64-msvc": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-x64-msvc/-/vectordb-win32-x64-msvc-0.1.16.tgz",
"integrity": "sha512-aD6XvNC9qIxPqGSvPA9/zicZ15rEM5YYiapx+Mb5pFMl6ZO20aLJRaMuyEDPZI5cwz44cfhFpZgRahkUgNccuQ==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"win32"
]
},
"node_modules/@neon-rs/cli": {
"version": "0.0.74",
"resolved": "https://registry.npmjs.org/@neon-rs/cli/-/cli-0.0.74.tgz",
@@ -4642,6 +4702,36 @@
"@jridgewell/sourcemap-codec": "^1.4.10"
}
},
"@lancedb/vectordb-darwin-arm64": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-arm64/-/vectordb-darwin-arm64-0.1.16.tgz",
"integrity": "sha512-HMREbYBUfmjgtKCLkktqbz2DT1DAMDgphA2KYK7qwPTymxGLWxYjER/alHnhB4oyxHFBH1wvaqKRlV5ZYN0u8A==",
"optional": true
},
"@lancedb/vectordb-darwin-x64": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-darwin-x64/-/vectordb-darwin-x64-0.1.16.tgz",
"integrity": "sha512-vrvOLMK1GnDtTi2lma4zhTto8TSo3dcZBBsdOmprWqMpv8VtVzqEwiDzKO5pazZGGgP0WyL1tjVJ/Z9qFFItwQ==",
"optional": true
},
"@lancedb/vectordb-linux-arm64-gnu": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-arm64-gnu/-/vectordb-linux-arm64-gnu-0.1.16.tgz",
"integrity": "sha512-CPKV4PPg9YwP73AozDnLTGLt0C49HefSd1i9uJC7Ef5gjLgQ7Qt2Y2mLsFUPFxrgoC7BJF4c1kksUTK4CGyDoA==",
"optional": true
},
"@lancedb/vectordb-linux-x64-gnu": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-linux-x64-gnu/-/vectordb-linux-x64-gnu-0.1.16.tgz",
"integrity": "sha512-CkUYB09WaNzzS5sCN3SG+fLKSt/3494sL2c/OjZBXF04GsIKH849nSzAOZaustxCEprYyaA62OWEPW9WDAHazQ==",
"optional": true
},
"@lancedb/vectordb-win32-x64-msvc": {
"version": "0.1.16",
"resolved": "https://registry.npmjs.org/@lancedb/vectordb-win32-x64-msvc/-/vectordb-win32-x64-msvc-0.1.16.tgz",
"integrity": "sha512-aD6XvNC9qIxPqGSvPA9/zicZ15rEM5YYiapx+Mb5pFMl6ZO20aLJRaMuyEDPZI5cwz44cfhFpZgRahkUgNccuQ==",
"optional": true
},
"@neon-rs/cli": {
"version": "0.0.74",
"resolved": "https://registry.npmjs.org/@neon-rs/cli/-/cli-0.0.74.tgz",

View File

@@ -1,6 +1,6 @@
{
"name": "vectordb",
"version": "0.1.15",
"version": "0.1.17",
"description": " Serverless, low-latency vector database for AI applications",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -78,10 +78,10 @@
}
},
"optionalDependencies": {
"@lancedb/vectordb-darwin-arm64": "0.1.15",
"@lancedb/vectordb-darwin-x64": "0.1.15",
"@lancedb/vectordb-linux-arm64-gnu": "0.1.15",
"@lancedb/vectordb-linux-x64-gnu": "0.1.15",
"@lancedb/vectordb-win32-x64-msvc": "0.1.15"
"@lancedb/vectordb-darwin-arm64": "0.1.17",
"@lancedb/vectordb-darwin-x64": "0.1.17",
"@lancedb/vectordb-linux-arm64-gnu": "0.1.17",
"@lancedb/vectordb-linux-x64-gnu": "0.1.17",
"@lancedb/vectordb-win32-x64-msvc": "0.1.17"
}
}

View File

@@ -1,6 +1,6 @@
[package]
name = "vectordb-node"
version = "0.1.15"
version = "0.1.17"
description = "Serverless, low-latency vector database for AI applications"
license = "Apache-2.0"
edition = "2018"

View File

@@ -1,6 +1,6 @@
[package]
name = "vectordb"
version = "0.1.15"
version = "0.1.17"
edition = "2021"
description = "Serverless, low-latency vector database for AI applications"
license = "Apache-2.0"