Skip to content
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

Merged
merged 6 commits into from
May 24, 2023
Merged

Add Joplin document loader #5153

merged 6 commits into from
May 24, 2023

Conversation

alondmnt
Copy link
Contributor

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.

  • The PR includes an integration test.
  • The PR includes an example notebook.

Who can review?

@eyurtsev

@dev2049 dev2049 added the 03 enhancement Enhancement of existing functionality label May 23, 2023
"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="
Copy link
Collaborator

@leo-gan leo-gan May 23, 2023

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?

Copy link
Contributor Author

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.

@dev2049 dev2049 added the Ɑ: doc loader Related to document loader module (not documentation) label May 24, 2023
@dev2049 dev2049 merged commit 44abe92 into langchain-ai:master May 24, 2023
@danielchalef danielchalef mentioned this pull request Jun 5, 2023
Undertone0809 pushed a commit to Undertone0809/langchain that referenced this pull request Jun 19, 2023
# 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>
This was referenced Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
03 enhancement Enhancement of existing functionality Ɑ: doc loader Related to document loader module (not documentation)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants