Find answers from the community

Updated 7 months ago

hi all newbie. question, does llama

At a glance

The community member asked if the LlamaIndex has the feature of incremental re-indexing. In the comments, another community member provided an answer, stating that you don't have to re-index all the content again and again. Instead, you can simply index the latest content on top of previously indexed items. The community member provided example code to demonstrate how to insert new documents into an existing index.

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