AI Filter List Node
Last updated
Last updated
This node allows you to filter items in one list based on a condition applied using AI to the corresponding element in the other list.
This node filters items in one list based on an AI condition applied to the corresponding element in a second list.
For example, if you filter (Red, White, Boat) by “The item is a color”, the output would be (Red, White).
List to Filter: The list to be filtered
Type: List<Text>
Filtered By: The list on which the conditions will be applied
Type: List<Text>
AI Condition: Natural language comparison rule for the AI that will be applied to each item in the Filter By list
Type: Text
Output: The filtered list after conditions are applied
Type: List<Text>
Example usage: {{ai_filtered_list_0.output}}
In the gear:
Provider: Provider of the AI model you want to use. The default provider is OpenAI.
Model: Model name of the AI model you want to use. The default model is gpt-4o.
Output Blank Value: Output a blank value for values that do not meet the filter condition.
While you are using this node make sure that the size of the two lists provided are always the same.
Write clear comparison conditions for accurate outputs.
Output Blank Value is useful to ensure that the outputted list is the same size as the inputted list.
This node relies heavily on AI model performance, which may vary depending on the complexity of your filtering conditions. For more reliable and consistent filtering use the Filter List node for straightforward comparisons and exact matching.