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.
| config |
Config2 instance for database initialization |
| data_dir |
Data directory for vector database. |
| GLib.Error |
if initialization fails |