Skip to content

[IDEA] SiYuan note integration #1146

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Open
Firefox2100 opened this issue Mar 31, 2025 · 0 comments
Open

[IDEA] SiYuan note integration #1146

Firefox2100 opened this issue Mar 31, 2025 · 0 comments
Labels
upgrade New feature or request

Comments

@Firefox2100
Copy link

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!

@Firefox2100 Firefox2100 added the upgrade New feature or request label Mar 31, 2025
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
upgrade New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant