feat: update nlu llm helper to use pattern lookup

This commit is contained in:
Mohamed Marrouchi
2025-05-13 16:19:24 +01:00
parent 949fee281a
commit 09666efec6
2 changed files with 12 additions and 53 deletions

View File

@@ -347,8 +347,10 @@ const NlpDatasetSample: FC<NlpDatasetSampleProps> = ({
label={t("label.nlp_entity")}
multiple={false}
preprocess={(options) => {
return options.filter(({ lookups }) =>
lookups.includes("keywords"),
return options.filter(
({ lookups }) =>
lookups.includes("keywords") ||
lookups.includes("pattern"),
);
}}
onChange={(_e, selected, ..._) => {