init_databases


Description:

public async void init_databases (Config2 config, string data_dir) throws Error

Initializes the vector database by getting dimension and creating the Database instance.

This method should be called after the tool is constructed and embedding_client is set. It performs the async operation to get the embedding dimension and creates the vector_db.

Parameters:

config

Config2 instance for database initialization

data_dir

Data directory for vector database.

Exceptions:

GLib.Error

if initialization fails