API Reference
Method to load data
API reference for the DataAnalyzr get_data
method
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.
- The required keys in the
config
dictionary depend on the specifieddb_type
. - The
vector_store_config
dictionary is optional and can be used to configure the vector store. - Sets the
df_dict
,database_connector
andvector_store
attributes of theDataAnalyzr
object. - The method does not return any value.
Parameters
db_type
Literal['files', 'redshift', 'postgres', 'sqlite']
requiredThe type of database to connect to.
db_config
dictionary
requiredConfiguration dictionary for the database connection.
When db_type
is files
:
When db_type
is redshift
or postgres
:
When db_type
is sqlite
:
vector_store_config
dictionary
Configuration dictionary for the vector store.
For details on vector store usage and configuration, refer to the Vector Store guide.