mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42: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',
|
EndWith = 'end with',
|
||||||
Empty = 'empty',
|
Empty = 'empty',
|
||||||
NotEmpty = 'not empty',
|
NotEmpty = 'not empty',
|
||||||
|
In = 'in',
|
||||||
|
NotIn = 'not in',
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SwitchOperatorOptions = [
|
export const SwitchOperatorOptions = [
|
||||||
@ -168,6 +170,16 @@ export const SwitchOperatorOptions = [
|
|||||||
label: 'notEmpty',
|
label: 'notEmpty',
|
||||||
icon: <CircleSlash2 className="size-4" />,
|
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';
|
export const AgentStructuredOutputField = 'structured';
|
||||||
|
|||||||
@ -1399,6 +1399,8 @@ Example: https://fsn1.your-objectstorage.com`,
|
|||||||
endWith: 'Ends with',
|
endWith: 'Ends with',
|
||||||
empty: 'Is empty',
|
empty: 'Is empty',
|
||||||
notEmpty: 'Not empty',
|
notEmpty: 'Not empty',
|
||||||
|
in: 'In',
|
||||||
|
notIn: 'Not in',
|
||||||
},
|
},
|
||||||
switchLogicOperatorOptions: {
|
switchLogicOperatorOptions: {
|
||||||
and: 'AND',
|
and: 'AND',
|
||||||
|
|||||||
Reference in New Issue
Block a user