TopK implementation of the VectorDatabase. This class provides a TopK-based vector database connector.

Constructor

TopKVectorDatabase(api_key, region, https=True, host="topk.io", default_query_limit=10)
Initialize the TopKVectorDatabase with API credentials and connection configuration.

Parameters

api_key
str
required
The API key for the TopK server.
region
str
required
The region of the TopK server.
https
bool
default:"True"
Whether to use HTTPS for the TopK server.
host
str
default:"topk.io"
The host of the TopK server.
default_query_limit
int
default:"10"
Default vector search limit, set to TopK’s default of 10.

Inheritance

Inheritance Chain:
  • TopKVectorDatabase
  • VectorDatabase
  • ABC
  • Generic