Find answers from the community

Updated last year

If I load index from storage for faster

At a glance

The community member is asking how to update an index loaded from storage to reflect new documents in a folder. The comments suggest using index.insert(document) or index.refresh, but note that refresh only checks for changes in already indexed documents. The community members also discuss making the index with chat messages persistent, while refreshing the index with documents on each bot startup, and how to merge the two indexes before starting the bot.

If I load index from storage for faster startup, then how to update that index if there is new documents in folder? I need to load documents everytime and check is there new docs and need to refresh index?
L
А
6 comments
index.insert(document)
or index.refresh?
Or refresh will check only changes in already indexed documents
Before inserting, I should find newly added document in storage by myself?
can I make index with chat messages persistant. But index with documents refresh everytime I start bot?
If so, how to merge 2 indexes before bot start?
Add a reply
Sign up and join the conversation on Discord