mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
### 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)
This commit is contained in:
@ -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: <CircleSlash2 className="size-4" />,
|
||||
},
|
||||
{
|
||||
value: ComparisonOperator.In,
|
||||
label: 'in',
|
||||
icon: <CircleSlash2 className="size-4" />,
|
||||
},
|
||||
{
|
||||
value: ComparisonOperator.NotIn,
|
||||
label: 'notIn',
|
||||
icon: <CircleSlash2 className="size-4" />,
|
||||
},
|
||||
];
|
||||
|
||||
export const AgentStructuredOutputField = 'structured';
|
||||
|
||||
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user