how to filter with either of following categories
filters = [
("source", "file"),
("source", "url"),
("source", "twitter"),
]
from llama_index.core.vector_stores import MetadataFilters, MetadataFilter, FilterCondition
filters = MetadataFilters(
filters=[
MetadataFilter(key="source", value="file"),
MetadataFilter(key="source", value="url"),
MetadataFilter(key="source", value="twitter"),
],
condition=FilterCondition.OR,
)
retriever = index.as_retriever(filters=filters)
retriever.retrieve("Your query here")
I am getting empty nodes list; what is supposed to be the issue; can anyone help?
thanks