From 8c751d5afca59885cd9ad660e635aa3d882f647e Mon Sep 17 00:00:00 2001 From: balibabu Date: Tue, 25 Nov 2025 14:25:32 +0800 Subject: [PATCH] Feat: support operator in/not in for metadata filter. #11376 #11378 (#11506) ### What problem does this PR solve? Feat: support operator in/not in for metadata filter. #11376 #11378 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/constants/agent.tsx | 12 ++++++++++++ web/src/locales/en.ts | 2 ++ 2 files changed, 14 insertions(+) diff --git a/web/src/constants/agent.tsx b/web/src/constants/agent.tsx index 5877b91b1..e1c1574d5 100644 --- a/web/src/constants/agent.tsx +++ b/web/src/constants/agent.tsx @@ -133,6 +133,8 @@ export enum ComparisonOperator { EndWith = 'end with', Empty = 'empty', NotEmpty = 'not empty', + In = 'in', + NotIn = 'not in', } export const SwitchOperatorOptions = [ @@ -168,6 +170,16 @@ export const SwitchOperatorOptions = [ label: 'notEmpty', icon: , }, + { + value: ComparisonOperator.In, + label: 'in', + icon: , + }, + { + value: ComparisonOperator.NotIn, + label: 'notIn', + icon: , + }, ]; export const AgentStructuredOutputField = 'structured'; diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 233a0d1fc..168395d22 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -1399,6 +1399,8 @@ Example: https://fsn1.your-objectstorage.com`, endWith: 'Ends with', empty: 'Is empty', notEmpty: 'Not empty', + in: 'In', + notIn: 'Not in', }, switchLogicOperatorOptions: { and: 'AND',