Compose Complex Prompts using Your Obsidian Notes - Copilot for Obsidian Tutorial

Logan Hallucinates
26 Feb 202410:23

Summary

TLDRLogan, the creator of Co-Pilot for Obsidian, showcases the Advanced Custom Prompt feature, which allows users to generate complex prompts using Obsidian notes through templating. He demonstrates various use cases, such as creating weekly notes, literature notes, and quiz sessions based on user-defined templates. The feature leverages curly braces for text selection, note titles, folder names, and tags, offering a versatile tool for users to enhance their note-taking and learning experiences. Logan encourages viewers to explore their creativity with this tool, as the potential applications are limited only by their imagination.

Takeaways

  • 🚀 Logan, creator of Co-Pilot for Obsidian, demonstrates the Advanced Custom Prompt feature.
  • 📝 Advanced Custom Prompt allows users to create long and complex prompts using Obsidian notes through templating.
  • 📚 Use cases include generating weekly notes, literature notes, and quiz sessions based on personal templates.
  • 🔄 The feature previously worked only on text selection but now supports templates with curly braces and double brackets.
  • 📋 Templates can include note titles, folder names, and tags, with the latter functioning as an 'or' operation.
  • 📅 An example weekly note template is provided, focusing on reviewing past goals, listing achievements, and setting new objectives.
  • 📖 A literature note template is shown, which structures the note around key topics, concepts, summaries, quotes, and personal reflection.
  • 📊 A quiz template is demonstrated, which can be used to create a quiz session with questions and answers based on a given set of prompts.
  • 🔗 Users can pass multiple notes to the prompt with one click using the up-button feature in Obsidian.
  • 🌐 The video encourages users to explore their own creative uses for the Advanced Custom Prompt feature.
  • 👋 Logan, an engineer, aims to make AI accessible to everyone and invites viewers to engage with the content.

Q & A

  • What is the main feature of the Co-Pilot plugin for Obsidian demonstrated in the video?

    -The main feature demonstrated is the Advanced Custom Prompt, which allows users to compose long and complex prompts using their Obsidian notes through templating.

  • How does the Advanced Custom Prompt feature work in Obsidian?

    -The feature works by allowing users to create templates and then use curly braces to represent selected text, note titles, and folder names. It also supports the use of hashtags to include notes with specific tags.

  • What are some example use cases for the Advanced Custom Prompt?

    -Examples include generating weekly notes, creating literature notes for books based on exported highlights, and starting quiz sessions using custom templates.

  • How can users trigger Co-Pilot commands in Obsidian?

    -Users can trigger Co-Pilot commands by using actions like add, edit, delete, and custom prompt. There's also an ad hoc custom prompt for one-time use without saving.

  • What is the purpose of the reflection section in the weekly note template?

    -The reflection section is meant for personal thoughts and is left blank in the template, as it's not suitable for AI to fill in for the user.

  • How does the Co-Pilot plugin handle the rollover of incomplete tasks from one week to the next?

    -The plugin recognizes incomplete tasks from the previous week's goals and rolls them over to the new week's objectives.

  • What is the significance of the 'or' operation in the list of tags feature?

    -The 'or' operation means that all notes with any of the listed tags will be included in the prompt, allowing for a broader selection of notes.

  • How can users create a new weekly note using a template?

    -Users can create a new weekly note by defining or generating a template, then using the Co-Pilot command to add a custom prompt, following the template's format and instructions.

  • What is the quiz template used for in the video example?

    -The quiz template is used to randomly pick questions from a pool, such as the US citizenship test questions, and follow a quiz format to ask questions, provide correct answers, and repeat until the user says stop.

  • How can users pass multiple notes to the prompt with one click?

    -Users can click the up button by default to send the active note to the prompt, or use the 'set note context' command in chat mode to fill in the folder name or text for context.

Outlines

00:00

🚀 Introducing Advanced Custom Prompt in Obsidian

Logan, the creator of Co-Pilot for Obsidian, demonstrates the Advanced Custom Prompt feature, which allows users to create complex prompts using Obsidian notes through templating. He showcases potential use cases such as generating weekly notes, literature notes, and quizzes based on personal templates, emphasizing the creative potential limited only by the user's imagination. The video delves into the mechanics of the feature, explaining how to trigger Co-Pilot commands and utilize various template elements like curly braces, double brackets, and hashtags for tags.

05:00

📝 Use Cases and Templates for Advanced Custom Prompt

Logan provides examples of how to use the Advanced Custom Prompt feature, including creating a weekly note template for a coding interview preparation, generating literature notes from book highlights, and setting up a quiz session based on a template. He explains the structure of the templates and how to customize them, as well as how to use the Co-Pilot commands to generate content. The video also touches on the concept of 'f-shot prompting' to improve model output quality and demonstrates how to create a quiz using the US citizenship test as an example.

10:01

👋 Logan's Closing Remarks and Accessibility of AI

In the final paragraph, Logan, an engineer and creator, reiterates his commitment to making AI accessible to everyone. He invites viewers to share their creative uses of the Advanced Custom Prompt feature in the comments section and reminds them of the simpler method to pass multiple notes to the prompt with a single click. Logan concludes the video with a call to action for viewers to like and subscribe to the channel.

Mindmap

Keywords

💡Co-pilot

Co-pilot in the context of the video refers to an AI assistant integrated with Obsidian, a note-taking app. It is designed to help users generate and manage content by automating tasks based on templates and user input. The Co-pilot is shown to be capable of creating complex prompts, managing notes, and even conducting quiz sessions, making it a powerful tool for users to enhance their productivity and organization.

💡Advanced Custom Prompt

This feature of the Co-pilot plugin enables users to create long and complex prompts using their Obsidian notes through a templating system. It allows for the automation of various tasks, such as generating weekly notes, literature notes, or quiz sessions, based on pre-defined or user-created templates.

💡Templating

Templating in the video refers to the use of pre-defined structures or formats that users can fill in or modify to create new content. Templates streamline the process of content creation by providing a blueprint that can be applied to various notes or tasks, saving time and ensuring consistency.

💡AI Generation

AI Generation is the process by which the Co-pilot AI assistant generates content based on user input or templates. This can include text, notes, quizzes, and other forms of content that are created to assist users in their tasks or studies.

💡Weekly Notes

Weekly Notes are a type of content that users create to reflect on their past week's activities, achievements, and goals, as well as to plan for the upcoming week. They serve as a personal organizational tool and can be enhanced by the Co-pilot's AI generation capabilities.

💡Literature Notes

Literature Notes are detailed summaries or analyses of a book's content, often including key topics, concepts, quotes, and personal reflections. These notes can be generated automatically by the Co-pilot using exported highlights from a book and a literature note template.

💡Quiz Template

A Quiz Template is a structured format used to create quizzes, which can be used for learning or reviewing information. It includes a series of questions, potential answers, and correct responses with explanations. The Co-pilot can use this template to generate quiz sessions based on user-provided content.

💡F-Shot Prompting

F-Shot Prompting is a technique used to improve the quality of AI model outputs by providing concrete examples for the model to learn from. It helps the AI understand the context and nuances of the task, leading to more accurate and relevant responses.

💡Contextual Understanding

Contextual Understanding refers to the AI's ability to comprehend and utilize the context of the information it is processing. This is crucial for generating relevant and meaningful content, as the AI must understand the relationships between different pieces of data to provide accurate responses.

💡Personalization

Personalization in the context of the video means tailoring the AI's output to the specific needs and preferences of the user. This can involve customizing templates, selecting specific content, or adjusting the AI's responses to better suit the user's goals and style.

💡Productivity Tools

Productivity Tools are applications or systems designed to help individuals or teams manage their tasks, time, and resources more effectively. The Co-pilot plugin for Obsidian is an example of a productivity tool that leverages AI to streamline note-taking and content creation.

Highlights

Logan, creator of Co-pilot for Obsidian, demonstrates the Advanced Custom Prompt feature.

Advanced Custom Prompt allows composing long and complex prompts using Obsidian notes through templating.

AI can generate weekly notes, literature notes for books, or start a quiz session based on user templates.

The feature supports various template elements like text selection, note titles, folder names, and tags.

Tags in the template work as an 'or' operation, including all notes with any of the listed tags.

Logan provides examples of creating a new weekly note using a template and the previous week's note.

The weekly note template includes sections for reviewing goals, listing achievements, setting objectives, and scheduling tasks.

AI-generated weekly notes can roll over incomplete tasks from the previous week.

Logan shows how to create literature notes automatically from exported book highlights using a template.

The literature note template includes sections for key topics, concepts, summary, important quotes, actionable ideas, and personal reflection.

A quiz template is demonstrated for improving model output quality through f-shot prompting.

The quiz example involves preparing for the US citizenship test by practicing with a set of questions.

The AI can pick questions randomly, ask them one at a time, and provide the correct answer and explanation.

Logan emphasizes the potential for creating any quiz from any material using Co-pilot.

There's a simpler way to pass multiple notes to the prompt with one click using the 'up' button.

The Co-pilot command 'set note context' can be used to set context in chat mode, which is powerful for models with long context windows.

Logan invites users to share their creative prompts in the comment section.

Logan is an engineer and creator committed to making AI accessible to everyone.

Transcripts

play00:00

hey Logan here creator of co-pilot for

play00:02

obsidian today I'm going to demo the

play00:04

feature called Advanced custom prompt it

play00:08

enables you to compose long and complex

play00:10

prompt using your obsidian notes through

play00:12

templating I'll show some example use

play00:15

cases like letting the AI generate

play00:18

weekly notes literature notes for a book

play00:21

or start a quiz session over your own

play00:23

material based on your own templates

play00:26

these are just small subset of what it

play00:28

can do I encourage you to try it out and

play00:31

come up with your own creative templates

play00:33

the only limit is our imagination

play00:36

without further Ado let's jump right

play00:38

into it with the co-pilot plug-in

play00:40

installed in obsidian you can trigger

play00:42

these co-pilot commands there are add

play00:46

edit delete custom prompt there's also

play00:50

an ad hoc custom prompt if you don't

play00:52

want to save it it used to only work on

play00:55

a text selection not anymore now you can

play00:58

leverage this kind of template curly

play01:01

braces by themselves still represents

play01:04

selected text a note title is wrapped

play01:07

inside double bracket the same as

play01:09

everywhere else in the obsidian Curry

play01:11

braces with text inside represent a

play01:14

folder name it plugs all the notes in

play01:17

that folder into the prompt the newest

play01:20

member is the list of tags now you can

play01:22

use hashtag to include all notes with

play01:25

these tags one comment is that the list

play01:29

of tags is like an or operation

play01:32

basically it means all notes with any of

play01:36

the tags will be included here now I'm

play01:39

going to show some use cases for the

play01:41

advanced custom prompt feature these are

play01:44

just examples to get your imagination

play01:47

warmed up I'm sure you will come up with

play01:50

many more creative ways to use it my

play01:53

examples include creating a new weekly

play01:56

note using a template and the previous

play01:59

weekly note generating a literature note

play02:01

using a template and exported highlights

play02:05

from a book and generating a quiz using

play02:09

a quiz template and a list of questions

play02:12

they all follow the same simple form

play02:15

using a template for X transform content

play02:18

X into a new form for example here's a

play02:21

weekly note I created for a person who's

play02:23

preparing for a coding interview the

play02:25

first step is to have a template you can

play02:28

Define your own or just let AI generate

play02:31

it for you here my weekly note template

play02:34

looks like

play02:35

this review of last week start by

play02:38

reviewing how well the previous week's

play02:40

goal was achieved list out significant

play02:43

achievements and things that fell short

play02:44

in separate lines goal for the week list

play02:48

the objectives for the week integrating

play02:50

any rollover task or goals from the

play02:53

previous week outline the following for

play02:55

the whole week key tasks appointments

play02:58

deadlines and and a bunch of to-dos

play03:01

notes and ideas

play03:03

reflection I think reflection is mostly

play03:07

for us only it's not good for AI to fill

play03:10

it for you so I uh have leave as blank

play03:13

here and here's the fictional previous

play03:17

week's Note review of last week

play03:19

completed binary tree problems insights

play03:22

need more focus on recursion Concepts

play03:25

and practice objective complete all

play03:28

pending recursion problems and there's

play03:31

uh some key task for recursion dynamic

play03:33

programming there are some questions

play03:36

done and some to be

play03:39

completed and there's a appointment

play03:42

weekly coding study group on Thursday at

play03:45

7 p.m. a deadline complete all recursion

play03:48

Problems by Wednesday start dynamic

play03:51

programming Problems by Thursday and and

play03:54

some todos now is the time for you to

play03:57

add your own custom prompt uh around

play04:00

this by triggering the co-pilot command

play04:02

add custom prompt and write down the

play04:05

title and your prompt I already have it

play04:07

so let me show you my prompt with the

play04:09

command edit custom prompt it looks like

play04:12

this use the format and instructions in

play04:16

weekly note template start a new weekly

play04:19

note make sure to replace the

play04:21

description section following the

play04:23

instructions and roll over incomplete

play04:25

items from the last week um remember to

play04:28

list each item them on their own line

play04:31

blah blah you get what I mean and let's

play04:34

see if it works you can assign keeper

play04:37

shortcut to these custom prompt I

play04:41

assigned command L highly recommend it

play04:44

super convenient so trigger great new

play04:47

weekly Note review of last week did not

play04:50

complete pending recursion problems

play04:53

you'll see here that it generated some

play04:56

comments on the previous week's goal

play05:00

it figured out that we

play05:03

didn't complete all pending recursion

play05:06

problems and we did not meet the goal of

play05:08

solving at least three dynamic

play05:11

programming problems and it gives us new

play05:14

objectives which sounds good okay I'm

play05:17

just going to copy and paste to create a

play05:20

new weekly

play05:23

note you can find tun the instructions

play05:26

in the description in your template uh

play05:29

but the this is the gist of

play05:32

it the next use case I'm showing

play05:36

is to generate a literature note

play05:40

automatically from the exported

play05:43

highlight of a book I

play05:45

read um here's the Highlight I exported

play05:48

from the book can't hurt me by David

play05:50

Goggins and this is the literature note

play05:55

template I'm using identify key topic

play05:59

and Concepts generate a few potential

play06:03

Texs put them inside this list summary

play06:06

of key points important quotes

play06:09

actionable ideas and personal reflection

play06:13

and here is the prompt use the format

play06:15

and instructions of literature note

play06:17

template create a new literature note

play06:19

based on the content of book can't hurt

play06:22

me which has all the exported highlights

play06:26

make sure to follow the instruction blah

play06:28

blah blah it's pretty similar to the

play06:31

previous one actually and here is the

play06:33

result what do you think I think it's

play06:36

pretty good uh next I'm going to show

play06:38

the quiz

play06:40

example there's a common way to improve

play06:43

the model output

play06:45

quality that is called f shot prompting

play06:49

it's basically you providing concrete

play06:51

examples for the model to learn from for

play06:54

instance say I'm preparing for the US

play06:57

citizenship test and need to get get

play06:59

familiar with the 100 questions I can

play07:02

have the questions in one note and some

play07:05

few Shot instructions in a template like

play07:07

this then my prompt is pick questions

play07:11

randomly from the question pool US

play07:13

citizenship test 100 questions and

play07:16

follow the format of quiz template to

play07:19

start a quiz session ask one question

play07:21

each time stop and wait for the user

play07:24

after the user answers provide the

play07:26

correct answer and explanation repeat

play07:28

this process on until the user says stop

play07:31

and let's see how it works in

play07:34

action what is the supreme law of the

play07:38

land B the Constitution

play07:42

correct what stops one branch of

play07:44

government from becoming too powerful C

play07:48

separation of

play07:51

powers who is the first president that's

play07:54

easy C George

play07:57

Washington what is the one right or

play07:59

freedom from the First Amendment freedom

play08:01

of

play08:03

speech oh that's too easy let me get it

play08:07

wrong on purpose this time and see if it

play08:10

uh corrects

play08:15

me right it tells me the correct answer

play08:18

is B between age 18 and 26 what does the

play08:23

president's cabinet do B advises the

play08:28

president

play08:30

correct what is the economic system in

play08:32

the United

play08:33

States C market economy this is pretty

play08:37

fun I can't stop doing

play08:40

this if you wish to stop the quiz please

play08:43

say stop it's getting tired of me being

play08:46

a smarty

play08:47

pant what did the Declaration of

play08:50

Independence do B declared our

play08:53

independence from Great

play08:55

Britain it really is tired of me okay

play08:58

let's stop up actually this is how I

play09:01

pass my own naturalization test to be

play09:03

honest with this method you can create

play09:06

any quiz from any material you have okay

play09:09

with these examples I hope you get where

play09:12

this is going you can easily reference

play09:14

your collections of notes and plug them

play09:17

into your prompt with a long context

play09:19

window the sky is the limit let me know

play09:22

what creative prompts you come up with

play09:24

in the comment section below oh by the

play09:26

way there's another simpler way to pass

play09:28

multiple noes to The Prompt with one

play09:30

click you just click the little up

play09:33

button by default it sends the active

play09:36

Noe to the prompt and you can start a

play09:38

chat around it or you can set the

play09:41

context by using the co-pilot command

play09:44

set no context in chat mode and fill in

play09:48

the folder name or text most of the

play09:51

times this is the easiest way to pass

play09:53

context to the model if you work with a

play09:56

model with super long context window

play09:58

this is going to be very powerful that's

play10:01

it for

play10:02

today I'm Logan an engineer and Creator

play10:05

committed to make AI accessible to

play10:08

everyone if you like the video please

play10:11

give it a thumbs up and subscribe to the

play10:13

channel I'll see you in the next

play10:15

[Music]

play10:21

one

Rate This

5.0 / 5 (0 votes)

Related Tags
AI Co-PilotObsidian PluginNote TransformationContent GenerationCustom PromptsProductivity ToolsAI AccessibilityTemplate CreationWeekly NotesLiterature NotesQuiz Creation