import cyborgdb_core as cyborgdb
# Using `redis` storage for the index and config
# Using `postgres` storage for the items
index_location = cyborgdb.DBConfig(location="redis", connection_string="redis://localhost")
config_location = cyborgdb.DBConfig(location="redis", connection_string="redis://localhost")
item_location = cyborgdb.DBConfig(location="postgres", table_name="item_table", connection_string="host=localhost dbname=postgres")
# Get your API key
api_key = "your_api_key_here" # Replace with your actual API key
# Construct the Client object
client = cyborgdb.Client(
api_key=api_key,
index_location=index_location,
config_location=config_location,
items_location=item_location
)