obsidiantools icon indicating copy to clipboard operation
obsidiantools copied to clipboard

Incremental refresh

Open louis030195 opened this issue 2 years ago • 3 comments

Hey, for https://github.com/louis030195/obsidian-ava, I'm trying to implement increment refresh of the state of the vault.

Concretely, I build sentence embeddings of the whole vault and would like to re-compute embeddings every time a note is updated/deleted/created.

Do you see any way of doing this incrementally rather than reloading the vault and recomputing everything every time? (It takes ~1 min on mps device on my 500k words vault)

Ideally, I'd see maybe an API that let me listen to vault changes with callback(s) in this library?

Thanks 🚀😃

louis030195 avatar Dec 09 '22 09:12 louis030195