- Enrichments are custom features designed to augment data provided in events.
- They add new computed columns to your published data automatically whenever defined.
- The new columns generated are available for querying in analyze, charting, and alerting, similar to any other column.
Input Parameter | Type | Default | Description |
---|---|---|---|
name | str | The name of the custom feature to generate | |
enrichment | str | The enrichment operation to be applied | |
columns | List[str] | The column names on which the enrichment depends | |
config | Optional[List] | {} | (optional): Configuration specific to an enrichment operation which controls the behavior of the enrichment |
# Automatically generating embedding for a column named “question”
fdl.ModelInfo.from_dataset_info(
dataset_info=dataset_info,
display_name='llm_model',
model_task=fdl.core_objects.ModelTask.LLM,
custom_features=[
fdl.Enrichment(
name='question_embedding',
enrichment='embedding',
columns=['question'],
),
fdl.TextEmbedding(
name='question_cf',
source_column='question',
column='question_embedding',
),
]
)
Note
Enrichments are disabled by default. To enable them, contact your administrator. Failing to do so will result in an error during the add_model
call.