Skip to main content

Get a store

Return detailed information about a single store by name.

Every operation works on both Vector DB stores (you supply raw vectors) and AI stores (you supply text or images and Ahnlich AI generates the embeddings for you). Use the Vector DB / AI switch in the sample below.

Parameters

ParameterTypeDescription
storestringName of the store to inspect.
schemastring · optionalSchema to target. Defaults to public.

All requests accept an optional schema field. When omitted, the server uses the public schema.

Behavior

  • Retrieves metadata and configuration for the named store.

Sample query

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


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

response = await client.get_store(
db_query.GetStore(store="my_store", schema="analytics")
)

print(f"Store name: {response.name}")
print(f"Number of entries: {response.len}")
print(f"Size in bytes: {response.size_in_bytes}")
print(f"Dimension: {response.dimension}")
print(f"Predicate indices: {response.predicate_indices}")
print(f"Non-linear indices: {response.non_linear_indices}")


if __name__ == "__main__":
asyncio.run(get_store_info())

Response

Store information including name, size, dimension, and configured indices.