Find answers from the community

Updated 5 months ago

hi all newbie. question, does llama

hi all newbie. question, does llama index has feature of incremental re-indexing? thanks for answering
W
1 comment
Yes you dont have to re-index all the content again and again.
You can simply index the latest content on top of previously indexed items.

Plain Text
# Current Index
index = VectorStoreIndex.from_documents()

# new docs 
documents = SimpleDirectoryReader('dir_name').load_data()

# Insert new docs into existing index
for doc in documents:
  index.insert(doc)
Add a reply
Sign up and join the conversation on Discord