最后活跃于 1733338340

knox 修订了这个 Gist 1733338339. 跳至此修订

1 file changed, 0 insertions, 0 deletions

LanceDB-2.py 重命名为 LanceDB-1.py

File renamed without changes

knox 修订了这个 Gist 1733337935. 跳至此修订

1 file changed, 8 insertions

LanceDB-2.py(file created)

@@ -0,0 +1,8 @@
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()
更新 更早