This plugin allows you to sync your Obsidian notes to a RAGFlow knowledge base, making them available for retrieval and use in RAGFlow-powered applications.
- Sync Obsidian notes to a RAGFlow knowledge base
- Configure which knowledge base to sync to
- Exclude specific folders from syncing
- Track sync status with MD5 hashing to avoid duplicate submissions
- Automatic chunking of notes for optimal retrieval
- Open Obsidian
- Go to Settings > Community Plugins
- Disable Safe Mode if necessary
- Click "Browse" and search for "RAGFlow Sync"
- Install the plugin and enable it
- Download the latest release from the GitHub repository
- Extract the files to your Obsidian vault's
.obsidian/plugins/obsidian-ragflow-sync
folder - Restart Obsidian
- Enable the plugin in Settings > Community Plugins
- Go to Settings > RAGFlow Sync
- Enter your RAGFlow API key
- Enter the base URL of your RAGFlow instance (e.g.,
http://localhost:2081
) - Enter the name of the knowledge base to sync to
- Configure other settings as needed:
- Sync on startup: Automatically sync notes when Obsidian starts
- Exclude folders: Specify folders to exclude from syncing
- Chunk size: Set the maximum size of each chunk in tokens
- Click the cloud icon in the ribbon menu, or
- Use the command palette (Ctrl/Cmd+P) and search for "Sync notes to RAGFlow"
If you've enabled "Sync on startup" in the settings, the plugin will automatically sync your notes when Obsidian starts.
- The plugin scans your Obsidian vault for markdown files
- It calculates an MD5 hash for each file to track changes
- For files that have changed or haven't been synced yet, it:
- Chunks the content into smaller pieces for optimal retrieval
- Creates a document in the RAGFlow knowledge base
- Adds the chunks to the document
- It maintains a local index of synced files to avoid duplicate submissions
- If you encounter errors during syncing, check your RAGFlow API key and base URL
- Make sure your RAGFlow instance is running and accessible
- Check the console logs for more detailed error messages
This plugin is licensed under the MIT License.