Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
How Do I prevent the file information to
How Do I prevent the file information to
Inactive
0
Follow
o
osiworx
11 months ago
Β·
How Do I prevent the file information to become part of the prompt context?
L
o
13 comments
Share
Open in Discord
L
Logan M
11 months ago
Plain Text
Copy
documents = <load_data> for doc in documents: doc.excluded_llm_metadata_keys.append("file_path")
o
osiworx
11 months ago
is this during embedding?
L
Logan M
11 months ago
this is before you put the documents into the index
o
osiworx
11 months ago
I think I would like to keep the information as such, I just don't want it to be part of the context during prompt generation
L
Logan M
11 months ago
Thats what the above code does π
o
osiworx
11 months ago
so I got it right π
o
osiworx
11 months ago
but I might have misspelled my question π I just dont want it to be part of the context when the context goes into the prompt
L
Logan M
11 months ago
Yea, I get it. Running the code block above before indexing your data will stop it from being in the prompt
o
osiworx
11 months ago
but then it is gone from the meta data either
L
Logan M
11 months ago
its not, its still there
L
Logan M
11 months ago
its only excluding it from the LLM/prompting steps
o
osiworx
11 months ago
ohhhhhh π
o
osiworx
11 months ago
thats great ill try it thank you and please dont worry me so stupid π
Add a reply
Sign up and join the conversation on Discord
Join on Discord