document.excluded_embed_metadata_keys
what it will do is exclude the following keys from embedding process. But it will stay as a metadata. docs = SimpleDirectorReader().load_data() for doc in docs: doc.metadata = {} #add the keys that you want to have in the nodes only or remove the ones from existing node # Then do the indexing part