Find answers from the community

Updated last month

Index update

Hello. Can I update an existing index with new data without generating embeddings for the old data again?
W
k
Z
7 comments
Yes you can, you just need to insert it to active index.

Plain Text
docs = simpleDirectoryReader().load_data()

for doc in docs:
     index.insert(doc)
does insert allow me to specify a embedding model?
also I want to insert nodes instead of docs as I am performing entity extraction too
Not fully sure on this But worth a try. You can always define the model at the top with Settings.
You can do index.insert_nodes([list of nodes])
but when i using this , it's over writing
Add a reply
Sign up and join the conversation on Discord