最後活躍 1733338340

修訂 1136e596b9b6b5113b3944726eebf5a3062144a9

LanceDB-1.py 原始檔案
1import lancedb
2
3uri = "data/sample-lancedb"
4db = lancedb.connect(uri)
5table = 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}])
8result = table.search([100, 100]).limit(2).to_pandas()