knox / Amplication-1.sh
0 likes
0 forks
1 files
Last active
1 | git clone https://github.com/amplication/amplication.git && cd amplication && npm install |
knox / LanceDB-2.py
0 likes
0 forks
1 files
Last active
1 | import lancedb |
2 | |
3 | uri = "data/sample-lancedb" |
4 | db = lancedb.connect(uri) |
5 | table = db.create_table("my_table", |
6 | data=[{"vector": [3.1, 4.1], "item": "foo", "price": 10.0}, |
7 | {"vector": [5.9, 26.5], "item": "bar", "price": 20.0}]) |
8 | result = table.search([100, 100]).limit(2).to_pandas() |
knox / LanceDB-2.sh
0 likes
0 forks
1 files
Last active
1 | pip install lancedb |
knox / LanceDB-1.js
0 likes
0 forks
1 files
Last active
1 | import * as lancedb from "@lancedb/lancedb"; |
2 | |
3 | const db = await lancedb.connect("data/sample-lancedb"); |
4 | const table = await db.createTable("vectors", [ |
5 | { id: 1, vector: [0.1, 0.2], item: "foo", price: 10 }, |
6 | { id: 2, vector: [1.1, 1.2], item: "bar", price: 50 }, |
7 | ], {mode: 'overwrite'}); |
8 | |
9 | |
10 | const query = table.vectorSearch([0.1, 0.3]).limit(2); |
knox / LanceDB-1.sh
0 likes
0 forks
1 files
Last active
1 | npm install @lancedb/lancedb |
knox / Open-VSX.sh
0 likes
0 forks
1 files
Last active
1 | yarn --cwd website |
2 | yarn --cwd website build |
3 | yarn --cwd website start:dev |