from actian_vectorai_client import VectorAIClient
with VectorAIClient("localhost:6574") as client:
# Manual cursor-based scroll
offset = None
page = 0
total_scrolled = 0
while True:
batch, next_offset = client.points.scroll(
"my_collection",
limit=10,
offset=offset
)
page += 1
total_scrolled += len(batch)
print(f"Page {page}: {len(batch)} points")
if next_offset is None or len(batch) == 0:
break
offset = next_offset
print(f"Total scrolled: {total_scrolled}"){
"usage": {
"hardware": null
},
"time": 0.000129652,
"status": "ok",
"result": {
"next_page_offset": 4,
"points": [
{
"id": 1,
"payload": {
"category": "A",
"value": 10
},
"vector": null
},
{
"id": 2,
"payload": {
"category": "B",
"value": 20
},
"vector": null
},
{
"id": 3,
"payload": {
"category": "C",
"value": 30
},
"vector": null
}
]
}
}{
"status": {
"error": "<string>"
},
"time": 123
}Search
Scroll points
Paginate through all points in a collection. The response includes a next_page_offset cursor that you pass as offset in subsequent requests to retrieve the next page. Useful for exporting data, iterating large datasets, or processing points in batches.
POST
/
collections
/
{collection_name}
/
points
/
scroll
from actian_vectorai_client import VectorAIClient
with VectorAIClient("localhost:6574") as client:
# Manual cursor-based scroll
offset = None
page = 0
total_scrolled = 0
while True:
batch, next_offset = client.points.scroll(
"my_collection",
limit=10,
offset=offset
)
page += 1
total_scrolled += len(batch)
print(f"Page {page}: {len(batch)} points")
if next_offset is None or len(batch) == 0:
break
offset = next_offset
print(f"Total scrolled: {total_scrolled}"){
"usage": {
"hardware": null
},
"time": 0.000129652,
"status": "ok",
"result": {
"next_page_offset": 4,
"points": [
{
"id": 1,
"payload": {
"category": "A",
"value": 10
},
"vector": null
},
{
"id": 2,
"payload": {
"category": "B",
"value": 20
},
"vector": null
},
{
"id": 3,
"payload": {
"category": "C",
"value": 30
},
"vector": null
}
]
}
}{
"status": {
"error": "<string>"
},
"time": 123
}Authorizations
Body
application/json