Awesome
<p align=center><img src="images/ollama_icon.png" width="192px"/></p>Alfred Ollama
<a href="https://github.com/zeitlings/alfred-ollama/releases/latest"><img src="https://img.shields.io/badge/download-v2.0.0-informational"></a>
Dehydrated Ollama Command Line Interface interface to
- Manage your local language models
- Perform local inference through Alfred
Requirements
The Ollama macOS application, at least one installed model for chat or other inference tasks, and the Xcode Command Line Tools.1 To modify or add custom inference actions to the workflow's universal action, install pkl, edit the configuration file and build the inference tasks.
Usage
Manage your local models or chat with them via the ollama
keyword. Alternatively, define Hotkeys for quick access.
- <kbd>↩</kbd> Continue conversation.
- <kbd>⌘</kbd><kbd>↩</kbd> Start or quit Ollama.
- <kbd>⌥</kbd> View Ollama version.
Local Models
<img src="images/preview2.png" width="564px"/>- <kbd>↩</kbd> Open the model page.
- <kbd>⇧</kbd> Quicklook preview the model page.
- <kbd>⌘</kbd><kbd>C</kbd> Copy the model name.
- <kbd>⌘</kbd><kbd>↩</kbd> Remove the model.
- <kbd>⌥</kbd><kbd>↩</kbd> Set as preferred model for inference.
Loaded Models
<img src="images/preview3.png" width="564px"/>- <kbd>⌘</kbd><kbd>↩</kbd> Unload the model.
New Models
<img src="images/preview4.png" width="564px"/>Type to match models based on your query.
- <kbd>↩</kbd> Open the model page.
- <kbd>⇧</kbd> Quicklook preview the model page.
- <kbd>⌘</kbd><kbd>L</kbd> View the unabridged model description as large type.
- <kbd>⌘</kbd><kbd>C</kbd> Copy the model name.
- <kbd>⌘</kbd><kbd>↩</kbd> Pull
model:latest
from registry. - <kbd>⌥</kbd><kbd>↩</kbd> (or tap <kbd>⇥</kbd>) Inspect available versions of the model.
Model Versions
<img src="images/preview5.png" width="564px"/>Type to match versions based on your query.
- <kbd>↩</kbd> Open the model page.
- <kbd>⇧</kbd> Quicklook preview the model page.
- <kbd>⌘</kbd><kbd>C</kbd> Copy the model name.
- <kbd>⌘</kbd><kbd>↩</kbd> Pull
model:version
from registry.
Pulling Models
<img src="images/preview6.png" width="564px"/>- <kbd>⌘</kbd><kbd>↩</kbd> Cancel the download.
Local Chat
<img src="images/preview7.png" width="564px"/>Chat History
<img src="images/preview8.png" width="564px"/>- <kbd>↩</kbd> Continue archived conversation.
- <kbd>⌥</kbd> View modification date.
- <kbd>⌘</kbd><kbd>↩</kbd> Reveal the chat file in Finder.
- <kbd>⌘</kbd><kbd>L</kbd> Inspect the unabridged preview as Large Type.
- <kbd>⌘</kbd><kbd>⇧</kbd><kbd>↩</kbd> Send conversation to the trash.
Inference Actions
Inference Actions provide a suite of language tools for text generation and transformation. These tools enable summarization, clarification, concise writing, and tone adjustment for selected text. They can also correct spelling, expand and paraphrase text, follow instructions, answer questions, and improve text in other ways.
Access a list of all available actions via the Universal Action or by setting the Hotkey trigger.
<img src="images/preview9.png" width="564px"/> <img src="images/preview10.png" width="564px"/>- <kbd>↩</kbd> Stream the result to the frontmost application.
[!IMPORTANT] Make sure you only use this if the frontmost UI Element accepts text.
There are no security checks in place at the moment.
Links:
Footnotes
Footnotes
-
xcode-select --install
↩