Skip to main content
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
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.vectoraidb.actian.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Admin JWT or access token for authenticating requests to VectorAI DB.

Path Parameters

collection_name
string
required

The name of the collection to scroll through.

Body

application/json
limit
integer
default:100

Maximum number of points to return per page. Must be greater than 0. For example, 20 returns 20 points per page. Defaults to 100.

Example:

10

offset

Cursor from a previous scroll response. Pass the next_page_offset value to fetch the next page. Omit or set to null for the first page.

Example:

3

filter
object

Optional filter conditions to narrow the scrolled results.

with_payload
boolean
default:true

Whether to include payload metadata in the response.

Example:

true

with_vector
boolean
default:false

Whether to include vector data in the response.

Example:

false

Response

Scroll results

usage
object
time
number<double>

Time spent to process this request, in seconds.

Example:

0.000129652

status
string

Operation status.

Example:

"ok"

result
object