Skip to main content

List store entries

Retrieve entries from a store in deterministic, cursor-paginated pages.

This operation works on both Vector DB stores and AI stores. Use the Database engine / AI proxy switch in the sample below.

Parameters

ParameterTypeDescription
storestringName of the store to list.
cursorstring · optionalOpaque cursor returned by the previous request.
limitinteger · optionalEntries per page. Defaults to 100; maximum is 1000.
conditionpredicate · optionalMetadata predicate used to filter entries.
schemastring · optionalSchema containing the store. Defaults to public.

Behavior

  • Returns entries in deterministic order.
  • Returns next_cursor when another page is available.
  • Applies condition before pagination when a metadata filter is provided.
  • The DB response contains vector keys. The AI response contains the original input when the store preserves it.
note

Treat the cursor as opaque. Pass next_cursor back unchanged; do not parse or construct it.

Sample query

Python
import asyncio
from grpclib.client import Channel
from ahnlich_client_py.grpc.db import query as db_query
from ahnlich_client_py.grpc.services.db_service import DbServiceStub


async def list_entries():
async with Channel(host="127.0.0.1", port=1369) as channel:
client = DbServiceStub(channel)
cursor = None

while True:
response = await client.list_store_entries(
db_query.ListStoreEntries(
store="movies",
schema="public",
cursor=cursor,
limit=100,
)
)

for entry in response.entries:
print(entry.key, entry.value)

if response.next_cursor is None:
break
cursor = response.next_cursor


asyncio.run(list_entries())

Response

The response contains the current page in entries. When next_cursor is absent, the final page has been reached.

To filter entries, provide a PredicateCondition through condition.