Build agents
AI index
Index field values so abbreviations and casual wording in questions match actual data.
Users often ask with abbreviations or casual wording, while databases store full names. The AI index builds an index of a field's distinct values, so “Mate 40” in a question matches “HUAWEI Mate 40 Pro 5G” in the database.
Enable it only for text fields that need it: indexing takes time, and each data source can index a limited number of fields. It suits fields with a limited set of values that people often abbreviate, such as product, store, and customer names.
This requires a project owner or project administrator and an enterprise license. Private deployments must first deploy AI search.
Entry: “More” → “Data sources” → click a data source → choose a table → click a field row to expand the details.
Enable indexing for a field
Turn on the switch
Turn on the “AI index” switch at the top left of the field details. The system starts indexing the column.
Check the result
A status icon appears next to the switch: a green check means success, and a red cross means failure. Click the icon to open “AI index details” and view total records, indexed values, and distinct values; on failure, the reason is shown.
Rebuild for a whole data source
After changing indexed fields or major data changes, click “Build Value Index” in “Settings” → “Index maintenance” to reselect fields and rebuild the index for the data source. The data source must be available.
“Rebuild Embedding” in the same place fills in missing field semantic vectors and is unrelated to the value index.
Limits
| Item | Default |
|---|---|
| Indexable field types | Strings (varchar, string, char); long text, dates, and numbers are not indexed |
| Indexed fields per data source | 10 |
| Distinct values per field | 50,000; indexing fails above this |
| Average field value length | 196 bytes; indexing fails above this |
| Single value length | Values over 256 characters are not indexed |
System administrators can change the field count and distinct value limits in “Settings” → “Data sources”.
Common issues
| Symptom | Cause | Action |
|---|---|---|
| Red cross, distinct values over the limit | The field has too many values | Choose a field with fewer values |
| Red cross, average length over the limit | The field is long text | Choose a short text field |
| Turning on the switch says an enterprise edition is required | No enterprise license | Contact an administrator |
| Cannot enable in a private deployment | The AI search service is not deployed | Configure it per Deploy AI search |
| Indexed values are 0 | The field contains only numbers, dates, or long text | Choose another field |
| “Build Value Index” is unavailable | The data source is not available | Wait for the sync to finish or fix sync errors first |
| Abbreviations still do not match | The field is not indexed, or the field limit is reached | Enable indexing; turn off indexing on less-used fields if needed |