Skip to content

pfrankov/obsidian-local-gpt

Repository files navigation

Local GPT plugin for Obsidian

demo
No speedup. MacBook Pro 13, M1, 16GB, Ollama, orca-mini.

The plugin allows you to open a context menu on selected text to pick an AI assistant action or open the Action Palette to run a one-time action. The most casual AI assistant for Obsidian.

Action Palette

Features

Works with images

No speedup. MacBook Pro 13, M1, 16GB, Ollama, bakllava.

Can use context from links, backlinks, and even PDF files (RAG)

Enhanced Actions
How to use (Ollama)

1. Install Embedding model:

  • For English: ollama pull nomic-embed-text (fastest)
  • For other languages: ollama pull bge-m3 (slower, but more accurate)

2. Select Embedding provider in plugin's settings and try to use the largest model with largest context window.

Default actions

  • Continue writing
  • Summarize text
  • Fix spelling and grammar
  • Find action items in text
  • General help (just use selected text as a prompt for any purpose)
  • New System Prompt to create actions for your needs

You can also add your own, share the best actions, or get one from the community.

Settings

Supported languages

  • English
  • Chinese
  • German
  • Russian

Installation

1. Install Plugin

Obsidian plugin store (recommended)

This plugin is available in the Obsidian community plugin store https://obsidian.md/plugins?id=local-gpt

BRAT

You can also install this plugin via BRAT: pfrankov/obsidian-local-gpt

2. Install AI Providers Plugin

You also need to install the AI Providers plugin from the plugin store to configure AI providers: https://obsidian.md/plugins?id=ai-providers

3. Configure AI Providers

Follow the instructions in AI Providers plugin.

Configure Obsidian hotkeys

  1. Open Obsidian Settings
  2. Go to Hotkeys
  3. Filter "Local" and you should see "Local GPT: Show context menu"
  4. Click on + icon and press hotkey (e.g. ⌘ + M)
  5. Filter "Local" again and you should see "Local GPT: Action Palette"
  6. Click on + icon and press hotkey (e.g. ⌘ + J)

My other Obsidian plugins

Inspired by

About

Local Ollama and OpenAI-like GPT's assistance for maximum privacy and offline access

Resources

License

Stars

Watchers

Forks

Packages

No packages published