-
Notifications
You must be signed in to change notification settings - Fork 16k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “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? Sign in to your account
Add Joplin document loader #5153
Conversation
langchain/document_loaders/joplin.py
Outdated
"access_token", "JOPLIN_ACCESS_TOKEN" | ||
) | ||
self.get_note = ( | ||
f"http://localhost:41184/notes?token={self.access_token}&fields=id,parent_id,title,body,created_time,updated_time&page=" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most probably, the port (it is 41184) is configurable. Maybe to add it as __init__
param with default as 41184?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @leo-gan , good idea. Although AFAIK it's not configurable in Joplin at the moment, perhaps if someone tries tunneling tricks they would need to adjust the host/port. Added.
# Add Joplin document loader [Joplin](https://joplinapp.org/) is an open source note-taking app. Joplin has a [REST API](https://joplinapp.org/api/references/rest_api/) for accessing its local database. The proposed `JoplinLoader` uses the API to retrieve all notes in the database and their metadata. Joplin needs to be installed and running locally, and an access token is required. - The PR includes an integration test. - The PR includes an example notebook. --------- Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
Add Joplin document loader
Joplin is an open source note-taking app.
Joplin has a REST API for accessing its local database. The proposed
JoplinLoader
uses the API to retrieve all notes in the database and their metadata. Joplin needs to be installed and running locally, and an access token is required.Who can review?
@eyurtsev