-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Integration with SiYuan note API, similar to Notion
Hello! One important reason for me to use self-hosted AI agents is to keep all the data private. For the same reason, I prefer self-hosted note-taking apps that does not sync with third-party services. SiYuan is a notion alternative that is open source, self-hostable, and privacy focused. I would like to suggest a SiYuan integration in khoj, and I'm happy to contribute, if this idea is being considered.
I've implemented a basic approach to use SiYuan notes in RAG myself, source code available at here. The idea is, SiYuan exposes some REST API, including one endpoint that allows SQL-like query. Using this endpoint, one may get:
- all blocks
- blocks updated after a certain time
- blocks belonging to a note
- etc.
Since each block also have a content (plaintext without formatting strings) and markdown (Markdown converted version of the original data) readily available, remaining is just to embed it, store it and use it for RAG. Again I'm happy to implement a prototype with khoj framework, if needed.
Thank you for your time and efforts!