Click here to learn more about the Re-ranking.Dify currently supports multiple Rerank models. To use external Rerank models, youâll need to provide an API Key. Enter the API Key for the Rerank model (such as Cohere, Jina AI, etc.) on the âModel Providerâ page.
Note: Automatic Mode requires model selection for document retrieval.
Note: When multiple knowledge bases are selected, only common metadata fields are shown in the list.
Field Type | Operator | Description and Examples |
---|---|---|
String | is | Exact match required. Example: is "Published" returns only documents marked exactly as âPublishedâ. |
is not | Excludes exact matches. Example: is not "Draft" returns all documents except those marked as âDraftâ. | |
is empty | Returns documents where the field has no value. | |
is not empty | Returns documents where the field has any value. | |
contains | Matches partial text. Example: contains "Report" returns âMonthly Reportâ, âAnnual Reportâ, etc. | |
not contains | Excludes documents containing specified text. Example: not contains "Draft" returns documents without âDraftâ in the field. | |
starts with | Matches text at beginning. Example: starts with "Doc" returns âDoc1â, âDocumentâ, etc. | |
ends with | Matches text at end. Example: ends with "2024" returns âReport 2024â, âSummary 2024â, etc. | |
Number | = | Exact number match. Example: = 10 returns documents marked with exactly 10. |
â | Excludes specific number. Example: â 5 returns all documents except those marked with 5. | |
> | Greater than. Example: > 100 returns documents with values above 100. | |
< | Less than. Example: < 50 returns documents with values below 50. | |
⥠| Greater than or equal to. Example: ⥠20 returns documents with values 20 or higher. | |
†| Less than or equal to. Example: †200 returns documents with values 200 or lower. | |
is empty | Field has no value assigned. For example, is empty returns all documents where this field has no number assigned. | |
is not empty | Field has a value assigned. For example, is not empty returns all documents where this field has a number assigned. | |
Date | is | Exact date match. Example: is "2024-01-01" returns documents dated January 1, 2024. |
before | Prior to date. Example: before "2024-01-01" returns documents dated before January 1, 2024. | |
after | After date. Example: after "2024-01-01" returns documents dated after January 1, 2024. | |
is empty | Returns documents with no date value. | |
is not empty | Returns documents with any date value. |
Time-type fields can only be filtered by constants The date picker is for time-type fields.
starts with "App"
or contains "App"
will match âAppleâ but not âappleâ or âAPPLEâ.AND
: Match all conditionsOR
: Match any condition