logancyang / obsidian-copilot

THE Copilot in Obsidian
https://www.obsidiancopilot.com/
GNU Affero General Public License v3.0
2.8k stars 192 forks source link

How to Sync Local Vector Data Using obsidian-git #714

Open gjhhust opened 1 week ago

gjhhust commented 1 week ago

Description:

Hello,

I am using the Copilot plugin for Obsidian and the obsidian-git plugin to synchronize my Obsidian vault across multiple machines. While obsidian-git effectively syncs my notes and files, I also need to sync the local vector data (embeddings) stored in the indexedDB.

Could you please provide guidance on how to sync the local vector data between different machines using obsidian-git? Specifically, I would like to know:

  1. How to export the local vector data to a file format (e.g., JSON).
  2. How to import the exported data back into the indexedDB.
  3. Any best practices or considerations for ensuring data integrity and security during the sync process.

Thank you for your help!

Environment:

Additional Information:

Thank you for your time and assistance!

Best regards

logancyang commented 1 week ago

Thanks for your question. The coming release is a migration from pouchdb (that uses indexdb) to Orama. And your index will be a json file in your .obsidian folder that gets synced automatically.