Find answers from the community

s
F
Y
a
P
Updated 2 months ago

Hi. I have a question for beginners. I

Hi. I have a question for beginners. I was indexing a collection in Qdrant, everything was fine. I went to index a v2 collection, with the same data, but now with text as aggregated metadata, and I came across the following problem: the tokens in my embedding model reached their maximum. So I had a question: does the metadata linked to the document also become an embedding?
W
h
2 comments
Yes metadata associated with the document becomes part of embedding if you allow it to be. By default it does but you can stop this from happening.

Plain Text
docs = [] # list of docs 

for doc in docs:
  doc.excluded_embed_metadata_keys = [] # This will remove it from embedding process
  doc.excluded_llm_metadata_keys = [] # This will remove it while generating response
Add a reply
Sign up and join the conversation on Discord