rom llama_index.core.vector_stores import ( MetadataFilter, MetadataFilters, FilterOperator, ) filters = MetadataFilters( filters=[ MetadataFilter( key="theme", operator=FilterOperator.EQ, value="Fiction" ), ] )
index.as_retriever(filters=filters).retrieve("query") index.as_query_engine(filters=filters).query("query")
index.as_query_engine(vector_store_kwargs={"qdrant_filters": <qdrant_syntax>}, ...)