No description
Find a file
2025-06-22 21:37:15 +10:00
docs revamp README in preparation for public release 2025-03-30 17:00:30 +10:00
src added an exclusion list to slightly reduce number of selectable models 2025-06-22 21:37:15 +10:00
.editorconfig use LF instead of CRLF (#28) 2022-04-15 14:13:31 -04:00
.eslintignore fix .eslintignore (#48) 2023-01-19 10:06:51 -05:00
.eslintrc add version bump script (#10) 2022-01-22 16:13:50 -05:00
.gitignore Update .gitignore (#25) 2022-01-28 10:34:53 -05:00
.npmrc add version bump script (#10) 2022-01-22 16:13:50 -05:00
.prettierrc introduce prettier, reformat files 2025-03-17 23:15:51 +10:00
.tool-versions update node version to 18.15.0 2025-01-15 19:17:01 +10:00
esbuild.config.mjs whole bunch of updates 2025-01-21 19:40:34 +10:00
jest.config.js whole bunch of updates 2025-01-21 19:40:34 +10:00
LICENSE.md added license file 2025-03-30 20:25:42 +10:00
manifest.json revamp README in preparation for public release 2025-03-30 17:00:30 +10:00
package-lock.json remove node-fetch dependency 2025-04-27 14:21:41 +03:00
package.json remove node-fetch dependency 2025-04-27 14:21:41 +03:00
publish.sh add a script to help with publishing new versions 2025-03-30 20:11:40 +10:00
README.md update readme to differentiate with other plugins 2025-05-28 16:09:25 +10:00
styles.css revamp README in preparation for public release 2025-03-30 17:00:30 +10:00
tsconfig.json update node version to 18.15.0 2025-01-15 19:17:01 +10:00
version-bump.mjs add version bump script (#10) 2022-01-22 16:13:50 -05:00
versions.json fix versions.json for v1 release 2025-03-30 19:11:52 +10:00

LLM docs

A plugin for Obsidian (https://obsidian.md) that lets you chat with LLMs in plain markdown files!

Features

  • Use the same Obsidian markdown editor you know and love to chat with LLMs and freely edit conversation history
  • Integrates with the OpenAI API (with plans to support other providers like Google and Anthropic)
  • Also works with self-hosted/local LLMs that expose an OpenAI-compatible API, like Ollama (https://ollama.com)
  • Can follow links to other Obsidian documents included in your prompt, making it easier to include additional context
  • Supports linked/embedded images in prompt

Advantages over similar plugins

The core feature of this plugin is that all chatting is done in plain markdown files which can be freely edited and persisted in your vault along with all your other documents. Most plugins featuring LLM chat aren't built this way, and instead make use of a separate window/UI to facilitate chat. Having said that, there is another great Obsidian plugin called ChatGPT MD which shares this design principle.

Compared to ChatGPT MD, an advantage is that this plugin includes visual overlays like a "complete" button to execute your query and a loading indicator to let you know your query is being executed. The headings for user and assistant responses have also been stylized to make it easier to read and scan through the document. Also, I've supported inline images and linked documents (markdown files) being included as context in the prompt.

In the future I plan to add even more great features, including:

  • Support for other LLM provider APIs, such as Google and Anthropic
  • Tool use, enabling "agentic" behaviour

How to use

1. Update your configuration

Open the Obsidian settings window and select "LLM docs" under "Community plugins":

settings.png

2. Create an LLM document

Create a new document by clicking the LLM docs icon (looks like a robot) in the sidebar, or running the "Create new LLM document" command (use it from the command palette, or assign a keyboard shortcut)

3. Prompt the LLM

Type in your prompt and click "Complete" to generate a response! (or bind a keyboard shortcut)

completion-example.gif

If you like it, I'm grateful for your support!

Buy Me a Coffee at ko-fi.com