feat: support offset in remote client (#1923)

Closes https://github.com/lancedb/lancedb/issues/1876
This commit is contained in:
Will Jones
2024-12-09 17:04:18 -08:00
committed by GitHub
parent db125013fc
commit ab5316b4fa
2 changed files with 6 additions and 4 deletions

View File

@@ -343,6 +343,7 @@ def test_query_sync_maximal():
assert body == {
"distance_type": "cosine",
"k": 42,
"offset": 10,
"prefilter": True,
"refine_factor": 10,
"vector": [1.0, 2.0, 3.0],
@@ -363,6 +364,7 @@ def test_query_sync_maximal():
table.search([1, 2, 3], vector_column_name="vector2", fast_search=True)
.metric("cosine")
.limit(42)
.offset(10)
.refine_factor(10)
.nprobes(5)
.where("id > 0", prefilter=True)