Hi,
1: Yes for adding metadata like
file_name
into embedding, you need to remove them from exclusion list that contains some default keywords which are excluded from embedding process.
You can do that once your docs are created.
docs = SimpleDirectoryReader().load_data()
for doc in docs:
doc.excluded_embed_metadata_keys = [] # This will exclude all the keywords from exclusion list and will include them into embedding process.
Once you create embeddings then you can check this into your retriever as well.
Also if you are going to check with a particular keyword: You can take a look at metadata filtering as well:
https://docs.llamaindex.ai/en/stable/examples/vector_stores/Qdrant_metadata_filter/#qdrant-vector-store-metadata-filter2: Would you mind sharing the doc link please