Storage
Algolia Integration in Mage
Credentials Configuration
Open the file named io_config.yaml
at the root of your Mage project and enter required fields:
Required Algolia Libraries
Add algoliasearch==3.0.0
into requirements.txt
to install the required weaviate library.
Integration using Python Blocks
Follow these steps to integrate Algolia into your workflow using Python blocks:
- Create a new pipeline or open an existing pipeline.
- Add a data loader or data exporter with Template. Under “Databases” category you can find the “Algolia” template.
-
Data loader arguments: Args: query_texts (str): Texts to query. index_name (str): Name of the index. Defaults to the name defined in
io_config.yaml
. column_names (List): columns to fetch. Returns: DataFrame: Data frame loaded. -
Data exporter arguments: Write data into Algolia.
Args: df (DataFrame): dataframes to write. index_name (str): Name of the index. Defaults to the name defined in io_config.yaml.
- Add your customized code into the loader, exporter or add extra transformer blocks.
- Run the block.
Was this page helpful?