You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched both the documentation and discord for an answer.
Question
Hello all,
I might use an old version of llamaindex, for the most updated version. Does it support to filter those nodes, where specific meta data field value is empty array? The following filters does not work for me with my current old version:
MetadataFilter(key="some_key", value=[], operator=FilterOperator.NE)
MetadataFilter(key="some_key", operator=FilterOperator.IS_EMPTY)
Thanks.
The text was updated successfully, but these errors were encountered:
Hey @wbqtac! I'm here to help you with any bugs, questions, or contributions you have. I'm a bot designed for just that. Let me know how I can assist you!
Yes, the latest version of LlamaIndex supports filtering nodes with empty arrays in metadata fields. You can use the FilterOperator.IS_EMPTY to filter nodes based on a metadata key that does not exist or is empty. This functionality is confirmed by a test case that demonstrates filtering nodes with empty metadata fields using the IS_EMPTY operator [1].
Question Validation
Question
Hello all,
I might use an old version of llamaindex, for the most updated version. Does it support to filter those nodes, where specific meta data field value is empty array? The following filters does not work for me with my current old version:
MetadataFilter(key="some_key", value=[], operator=FilterOperator.NE)
MetadataFilter(key="some_key", operator=FilterOperator.IS_EMPTY)
Thanks.
The text was updated successfully, but these errors were encountered: