How to Prepare AI Alias¶
This guide explains how to prepare an alias file and use it as the AI-inferred alias for a factor layer in CartoScope.
Concepts¶
0. Explore the Data with AI Assistance¶
You can explore your spatial dataset using the available AI-assisted tools within the platform.
Leveraging the current AI agent, you might: - Identify meaningful feature groupings or patterns - Inspect how factors are distributed spatially - Get inspiration for intuitive and consistent alias naming
1. Prepare Your Alias File¶
Alias File Format
- The file must be a tab-separated file (
.tsv) with one row per factor. - It should contains two columns:
- 1st column (header: either
indexorname): numeric factor indices. - 2nd column (header:
alias): aliases names.
- 1st column (header: either
Example Alias File
1 2 3 4 | |
2. Link Your Alias File in catalog.yaml¶
If you want this alias file to be available as the AI-inferred alias for a factor layer of a dataset, define it in catalog.yaml.
Example catalog.yaml with Alias Files
In the example, we want to provide the ai_inferred_alias.tsv file to the target_layer factor layer in the example_data dataset.
1 2 3 4 5 6 7 8 9 10 | |
In this setup:
alias_aiis the optional AI-generated alias table used as the AI-inferred source.