Skip to main content
This method retrieves data from various types of databases or files based on the provided configuration. It also creates a vector store for the data. This method must be called before performing any analysis.
  1. The required keys in the config dictionary depend on the specified db_type.
  2. The vector_store_config dictionary is optional and can be used to configure the vector store.
  3. Sets the df_dict, database_connector and vector_store attributes of the DataAnalyzr object.
  4. The method does not return any value.

Parameters

Literal['files', 'redshift', 'postgres', 'sqlite']
required
The type of database to connect to.
dictionary
required
Configuration dictionary for the database connection.When db_type is files:
When db_type is redshift or postgres:
When db_type is sqlite:
dictionary
Configuration dictionary for the vector store.
For details on vector store usage and configuration, refer to the Vector Store guide.

Example usage