Find answers from the community

Updated 2 months ago

I don't want my LLM to see any of the

I don't want my LLM to see any of the metadata. I am aware that we can use excluded_llm_metadata_keys for this purpose. Instead of naming all metadata keys separately like this document.excluded_llm_metadata_keys = ["metadata key1", "metadata key2", ...., "metadata keyN"], is it possible to use something so that LLM excludes all metadata keys? I have different file types in my use case and they have different loaders and hence, different metadata keys. I want to see if I can use a one-liner to exclude metadata keys from LLM instead of using conditions for each file type
L
A
a
3 comments
no such one liner currently
@Anurag Agrawal I believe the excluded_llm_metadata_keys are node specific so you can set them when you create the node based on the type of node that it is (presubably you know this when creating them)
Add a reply
Sign up and join the conversation on Discord