Obsidian
Obsidian is a note-taking application that enables users to create, link, and visualize ideas directly on their devices. With Obsidian, you can seamlessly sync notes across devices, publish your work, and collaborate with others. The app is highly customizable, allowing users to enhance functionality through a wide range of plugins and themes. Its unique features include a graph view to visualize connections between notes, making it ideal for managing complex information and fostering creativity. Obsidian also emphasizes data privacy by storing notes locally.
Obsidian-local-gpt is a plugin that allows users to run a local large language model within Obsidian note-taking application. This plugin enables various AI-powered features directly in Obsidian, such as text generation, summarization, spelling and grammar checks, and task extraction.
A key feature of this plugin is that it supports a large number of open source LLMs. You can choose an LLM that is finetuned for your specific task -- eg if you take a lot of coding notes, you could choose a Codestral or CodeLlama or DeepSeek LLM. Furthermore, if you choose to run the LLM locally on your own computer, the plugin would support private and offline use of the LLM features. For more details, you can visit the obsidian-local-gpt GitHub page.
This guide explains how to set up and use the plugin with a lightweight LlamaEdge LLM as an alternative to OpenAI or Ollama.
Prerequisites
Follow this guide to run an open-source LLM locally.
Obsidian-local-gpt Plugin Setup
Make sure you have already installed the Obsidian app on your device.
Install the Obsidian-local-gpt Plugin
- Open Obsidian settings, navigate to "Community plugins", and search for
obsidian-local-gpt
. - Install the plugin by clicking on "Install".
Then click on "Enable".
Configure the Plugin
- Go to the plugin settings.
- Select "AI Provider" as "OpenAI compatible server".
- Set the server URL. Use
http://localhost:8080/
for your local LlamaEdge LLM.
Make sure to click the refresh button and choose the llama-3-8b-chat model.
Configure Obsidian Hotkey
- Open Obsidian Settings
- Go to Hotkeys
- Filter "Local" and you should see "Local GPT: Show context menu"
- Click on
+
icon and press hotkey (e.g.⌘ + M
)
As long as you have set the hotkey, while writing or editing a note, select the text you want to interact with, and press the hotkey you have set to use this LLM powered plugin!
Use Cases
Text Continuation
- Select a text segment, right-click, and choose "Continue writing". The model will generate the continuation (dislayed in the screenshot in grey).
Summarization
- Select a longer text segment, right-click, and choose "Summarize text". The model provides a summary as below of the CNAI report content I seleted.
Here is a concise summary of the key points:
- Cloud Native (CN) refers to well-balanced systems built using microservices, promoting modular design and reusability.
- Kubernetes has become the de facto cloud operating system, offering scalability, resilience, and DevOps best practices.
- Every Cloud Service Provider offers Kubernetes as a service, facilitating access to infrastructure and support services for various workloads, including AI/ML.
- The Cloud Native Computing Foundation defines Cloud Native as empowering organizations to build scalable applications in modern environments using containers, microservices, and declarative APIs.
- Cloud Native Artificial Intelligence (CNAI) is an evolving extension of Cloud Native, focusing on building and deploying AI applications and workloads using Cloud Native principles.
Spelling and Grammar Check
- Select text, right-click, and choose "Fix spelling and grammar". The model will correct errors.
Extract Action Items
- For notes with multiple tasks, select the text and click "Find action items". The model will list the tasks.
The Generated content are displayed below your own text:
Here are the action items extracted from the document in Markdown checkbox format:
[ ] Add feedback on WasmEdge Q3 Roadmap Discussion
[ ] Provide input on Update on WasmEdge Community Governance
[ ] Discuss any additional topics at the meeting (add to [https://docs.google.com/document/d/1iFlVl7R97Lze4RDykzElJGDjjWYDlkI8Rhf8g4dQ5Rk/edit#](https://docs.google.com/document/d/1iFlVl7R97Lze4RDykzElJGDjjWYDlkI8Rhf8g4dQ5Rk/edit))
Let me know if you'd like me to help with anything else!
General Assistance
- Select any text and click "General help" to get contextually relevant information from the model.
I entered and selected some information on KubeCon + CloudNativeCon + Open Source Summit + AI_dev China 2024. Because llama3 has not been trained with info on this conference, so the output is not very helpful:
The information you're looking for is not present in this context.
If you need to know the format and dates of KubeCon + CloudNativeCon + Open Source Summit + AI_dev China 2024, I suggest searching for official announcements or websites related to these events.
Try it now!
Ready to supercharge your note-taking with AI? Get started with the Obsidian-local-gpt plugin and your local LLM today:
- Set up the Obsidian-local-gpt plugin in your Obsidian app.
- Explore the various AI-powered features to enhance your productivity.
Start your journey towards smarter, more efficient note-taking now!