This plugin integrates Ollama's AI capabilities directly into your Obsidian workflow, allowing you to generate AI-powered content seamlessly within your notes.
Disclaimer: Before installing this plugin, please make sure you have Ollama installed. Without running Ollama API this extension will not work. Its called integration because it integrates with local Ollama API on your machine. It does not require internet connection to work. (Of course if you downloaded your ollama models before)
- Open Obsidian and go to Settings > Community Plugins.
- Disable Safe Mode if it's enabled.
- Click on "Browse" and search for "Ollama".
- Find the "Ollama Plugin" and click "Install".
- Once installed, enable the plugin.
- Go to Settings > Ollama Plugin.
- Set the "Ollama URL" to the address of your local Ollama instance (e.g.,
http://localhost:11434
). - Select your preferred Ollama model from the dropdown list.
- Click "Refresh Models" if you've added new models to your Ollama instance.
- Click the Ollama icon in the left ribbon, or use the command palette to open the "Ollama prompt modal".
- Enter your prompt in the text area.
- Click "Generate Response" to get the AI-generated content.
- The response will appear below the input area.
- In your note, type
/ollama
followed by your prompt. - Press Enter to generate the response.
- The AI-generated content will be inserted directly into your note.
- Select text in your note.
- Open the command palette and search for "Generate Ollama response".
- The selected text will be used as a prompt, and the response will replace the selection.
As you type /
in your notes, the plugin will suggest the Ollama command, allowing for quick access to AI generation.
- Experiment with different prompts to get the best results.
- Use specific and clear language in your prompts for more accurate responses.
- Remember that the quality of the output depends on the selected Ollama model.
- If you're not getting responses, check that your Ollama URL is correct and that the Ollama service is running.
- Ensure you've selected a valid model in the plugin settings.
- Check the console for any error messages if you're experiencing issues.
For support, please open an issue on the GitHub repository or consult the Obsidian community forums.
Enjoy enhancing your note-taking with AI-powered insights!
You can support this project here: https://www.patreon.com/marcinwozniak