Find answers from the community

Updated last year

I m also wondering when setting the `id

I'm also wondering, when setting the id_ field for my documents (per the docs):
Plain Text
documents.append(Document(
        id_=str(s['id']),
        text=s['bodytext'],
        metadata={
          'id': s['id'],
          'headline': s['headline'],
          'published_time': s['date'],
...

Why in pinecone the id_ is still a random UID (screenshot attached).
Attachment
Screenshot_2023-08-04_at_11.33.13.png
L
v
5 comments
So, the document object gets broken into nodes when inserted

Each node has a new id, but still contains a reference to the original document ID
We store that ID in the vectordb as well
that makes perfect sense, thanks!! 🍻
Add a reply
Sign up and join the conversation on Discord