document = Document( text="text", metadata={"filename": "<doc_file_name>", "category": "<category>"}, )
filters = MetadataFilters( filters=[ MetadataFilter(key="product_category", operator=FilterOperator.EQ, value="shoes") ] )
retriever = index.as_retriever(filters=filters)
filters = MetadataFilters( filters=[ MetadataFilter(key="file_name", operator=FilterOperator.EQ, value="file1.txt"), ], )
filters = MetadataFilters( filters=[ MetadataFilter(key="file_name", operator=FilterOperator.IN, value=["file1.txt", "file2.txt"]), ], )
ValueError: Vector Store only supports exact match filters. Please use ExactMatchFilter or FilterOperator.EQ instead