Get AI summaries of any video or article — Sign up free
The Most Useful Plugin For Obsidian| GPT-3 AI Writer thumbnail

The Most Useful Plugin For Obsidian| GPT-3 AI Writer

Prakash Joshi Pax·
5 min read

Based on Prakash Joshi Pax's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Install the Obsidian “Text Generator” plugin and enable it in Settings before any AI generation can work.

Briefing

A free way to use GPT-3 writing help inside Obsidian hinges on one practical setup: install the “Text Generator” plugin, add an OpenAI API key, and then generate drafts directly from the note context. Instead of paying for standalone AI writing services like Jasper or Copy.ai, the workflow routes requests through OpenAI’s API—so costs scale with usage and the tool can be used as a daily writing and knowledge-management assistant.

The setup starts in Obsidian’s Settings, where the “Text Generator” plugin is installed and enabled. The plugin then asks for an API key, which is obtained from OpenAI’s account dashboard under API keys. After the key is added, the plugin’s options map to OpenAI’s model and generation controls. Model selection determines both speed and power: the “engine” setting uses either the more capable DaVinci model or the faster Ada model. The transcript also breaks down pricing in token terms—roughly 1,000 tokens are about 750 words—showing that Ada is far cheaper per token than DaVinci. OpenAI’s free tier is positioned as the on-ramp: 18 in free credit for the first three months, with the presenter noting only a small amount consumed after a couple of days.

Within Obsidian, the plugin’s generation behavior is tuned using parameters like Max tokens (the maximum output length per generation), temperature (randomness/creativity), and frequency penalty (reducing repeated words). There’s also an optional status bar indicator to show when generation is running. Hotkeys provide quick control: one set adjusts Max tokens temporarily, while others trigger generation with or without metadata context.

The core usage concept is “context.” The AI can generate from whatever the cursor is currently on—either a line, the whole node if the cursor sits on an empty line, or a selected text span. For more targeted results, the plugin can use metadata from the note (such as a title and keywords) as the prompt context. Two generation commands are demonstrated: generating text normally (e.g., using Ctrl J) and generating text using metadata (e.g., Ctrl Alt J). The examples show the plugin drafting content about topics like reading habits, then continuing the draft with another generation call.

Beyond drafting paragraphs, the same mechanism supports idea generation and brainstorming. Users can request multiple ideas for an article topic (like reading more books) or for a niche YouTube channel, then iterate by generating additional text. The transcript also mentions using the tool for summaries and conclusions, though one attempt doesn’t work in the presenter’s setup.

Overall, the takeaway is a workflow: generate drafts, expand notes, and brainstorm ideas inside Obsidian by combining OpenAI’s API with the Text Generator plugin—keeping costs low through free credit and token-based pricing while maintaining a note-first writing process.

Cornell Notes

The Text Generator plugin turns Obsidian into a GPT-3 writing workspace by sending note context to OpenAI’s API. After installing the plugin and adding an OpenAI API key, users choose an engine (Ada for speed/low cost or DaVinci for stronger output) and tune generation settings like Max tokens, temperature, and frequency penalty. The plugin generates text either from the current cursor context (line/node/selection) or from note metadata such as title and keywords. Hotkeys trigger generation and can temporarily adjust output length. This enables drafting, continuing notes, and brainstorming ideas directly inside a knowledge vault—using OpenAI’s token-based pricing and initial free credit.

How does the plugin decide what the AI should write about?

It relies on “context.” If the cursor is on a line, that line becomes the starting context. If the cursor is on an empty line, the whole node is used as context. If the user selects specific text, the selection becomes the context. For more structured prompts, the plugin can also use note metadata (like a title and keywords) as the context.

What’s the difference between generating text normally and generating text using metadata?

Normal generation uses the current cursor context (line/node/selection). Metadata generation uses fields attached to the note—such as a title and keywords—to guide the output. In the transcript, the metadata example includes a title like “habit of reading” and keywords like “books,” “reading,” and “learning,” and the AI generates content aligned to those fields.

Why do model choices (Ada vs DaVinci) matter for cost and output?

The engine setting controls which OpenAI language model is used. Ada is described as faster and cheaper, while DaVinci is described as more powerful but more expensive. Pricing is explained in token terms: 1,000 tokens are roughly 750 words, and the cost per 1,000 tokens is much lower for Ada than for DaVinci.

What do Max tokens, temperature, and frequency penalty control?

Max tokens sets the maximum length of generated text in one run (the transcript uses 160 as an example). Temperature controls randomness and creativity—higher values tend to produce more varied output. Frequency penalty reduces the probability of words repeating that have already appeared in the generated text.

How do hotkeys improve the workflow inside Obsidian?

Hotkeys provide quick generation and quick tuning. The transcript shows hotkeys that trigger generation (e.g., Ctrl J for generate text and Ctrl Alt J for generate text using metadata) and hotkeys that temporarily increase Max tokens (e.g., “increase Max tokens by 10” or “increase Max tokens by 20”) so users can get longer output without changing settings permanently.

What kinds of tasks can be done besides writing full paragraphs?

The same context-driven generation supports idea generation and brainstorming. Examples include generating multiple ideas about how to read more books (like joining a book club) and brainstorming niche YouTube channel ideas. The transcript also mentions using the tool for summaries and conclusions, though one summary attempt didn’t work on the presenter’s side.

Review Questions

  1. When should a user rely on cursor context versus note metadata for better AI output in Obsidian?
  2. How do Max tokens and temperature jointly affect the length and style of generated text?
  3. What steps are required to connect Obsidian’s Text Generator plugin to OpenAI’s API, and where does the API key come from?

Key Points

  1. 1

    Install the Obsidian “Text Generator” plugin and enable it in Settings before any AI generation can work.

  2. 2

    Create an OpenAI API key from the OpenAI account dashboard and paste it into the plugin’s API key field.

  3. 3

    Choose between Ada (faster/cheaper) and DaVinci (more powerful) using the plugin’s engine setting to balance quality and cost.

  4. 4

    Use Max tokens, temperature, and frequency penalty to control output length, creativity, and repetition.

  5. 5

    Generate text from cursor context (line/node/selection) for quick drafting, or use metadata (title/keywords) for more targeted results.

  6. 6

    Use hotkeys to trigger generation and temporarily increase Max tokens when longer drafts are needed.

  7. 7

    Apply the workflow to drafting, continuing notes, and brainstorming ideas for articles and niche channels.

Highlights

A token-based pricing model makes the plugin practical: 1,000 tokens are roughly 750 words, and Ada is far cheaper than DaVinci.
The plugin’s “context” system lets users steer outputs by cursor position (line/node/selection) or by note metadata like title and keywords.
Hotkeys provide fast iteration—generate, continue, and request longer output without leaving Obsidian.

Topics

Mentioned