----------------------
I'm sorry, but the information extracts provided do not contain specific instructions or examples on how to add multiple values to a metadata filter for a single key using LlamaIndex. The examples provided only demonstrate filtering with exact match for a single key-value pair.
However, you can typically use multiple
ExactMatchFilter
instances with the same key but different values in the
MetadataFilters
list. Here's a hypothetical example:
from llama_index.vector_stores.types import ExactMatchFilter, MetadataFilters
filters = MetadataFilters(filters=[
ExactMatchFilter(key="filename", value="file1.txt"),
ExactMatchFilter(key="filename", value="file2.txt")
])
Please note that this is a hypothetical example and may not work as expected. For accurate information, I recommend referring to the official LlamaIndex documentation or source code.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------