mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat: update nlu llm helper to use pattern lookup
This commit is contained in:
@@ -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, ..._) => {
|
||||
|
||||
Reference in New Issue
Block a user