Skip to main content

Server info

Retrieve metadata about the running server, including its binary version and type (DB, AI, or Hybrid).

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

This request takes no arguments.

Behavior

  • The server responds with version and type metadata.
  • Use it to validate you're connected to the correct server role — useful for environment checks, feature gating, and diagnostics.

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
from ahnlich_client_py.grpc.server_types import ServerType

async def info_server():
"""Test server version"""

async with Channel(host="127.0.0.1", port=1369) as channel:
client = DbServiceStub(channel)
response = await client.info_server(db_query.InfoServer())
# response contains server version and type
print(f"Server version: {response.info.version}")

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

Response

Server metadata including version and type.