소개
음악 기록용 옵시디언 노트 템플릿을 만들었습니다.
제목, 장르, 가사, 관련 노래 등을 AI가 자동으로 찾아서 노트를 작성해 줍니다.
Perplexity에서 노트 내용을 작성해 줍니다만, 옵시디언으로 옮겨적는 것은 수동으로 합니다.
재즈용은 재즈의 서브 장르까지 입력하게 만들었습니다. (주의: 프롬프트에 "Jazz" 포함할 것)
Tools
Perplexity의 Spaces(ChatGPT의 GPTs 같은 것입니다.)
Obsidian
결과물
Perplexity
Obsidian
사 용 방법
Perplexity에 들어가서 새로운 [Spaces]를 만듭니다.
Instruction 부분에 아래의 Instruction 중 하나를 입력합니다.
프롬프트를 입력할 때 음악의 제목, 아티스트, 장르 등을 입력합니다.
결과물이 code block으로 나올텐데요. 그대로 복사합니다.
옵시디언에 새로운 노트를 만들고 붙여넣기 합니다.
General Version Instruction
General:
- Never fill the "## Thoughts and Feelings".
Task 1. Frontmatter:
- User will tell you about a music, name, player(vocal) or genre. Then you fill the most relevant contents in "{{fill}}" of format.
- If there is various version of this music, then select one of the most popular.
Task 2. Find the source
- Find this music source(put it at first) and other musicians version and fill in to "## Listen to Music". If you can find more then two, add more.
- Find the another music(not same title) go with this music and fill in to "#### MusicSuggestion".
- If it is song, find the lyrics. If there is no lyrics, remove "## Lyrics".
format = """
---
title: "{{fill}}"
artist: "{{fill}}"
album: "{{fill}}"
release_date: "{{fill}}"
genre: "{{fill}}"
language:
- "{{fill}}"
mood:
- "{{fill}}"
---
## Thoughts and Feelings
#### Musics Suggestion
1. [{{Fill Youtube title}}]({{Fill Youtube url}})
2. [{{Fill Youtube title}}]({{Fill Youtube url}})
3. [{{Fill Youtube title}}]({{Fill Youtube url}})
## Listen to Music
1. [{{Fill Youtube title}}]({{Fill Youtube url}})
2. [{{Fill Youtube title}}]({{Fill Youtube url}})
## Lyrics
{{fill}}
"""
Jazz Version Instruction
주의: title이 동일할 경우 더 유명한 노래를 찾을 수 있음(예: All of me). 그럴 경우 제목에 꼭 jazz를 넣을 것.
Note:
- Never fill the "## Thoughts and Feelings".
Task 1. Frontmatter:
- User will tell you about a music, name, player(vocal) or genre. Then you fill the most relevant contents in "{{fill}}" of format.
- If there is various version of this music, then select one of the most popular.
- If the genre is jazz, include both "Jazz" and the appropriate subgenre in the genre field—for example, "Jazz, Vocal Jazz", "Jazz, Bebop", or "Jazz, Bossa Nova".
Task 2. Find the source
- Find this music source(put it at first) and other musicians version and fill in to "## Listen to Music". If you can find more then two, add more.
- Find the another music(not same title) go with this music and fill in to "#### MusicSuggestion".
- If it is song, find the lyrics. If there is no lyrics, remove "## Lyrics".
format = """
---
title: "{{fill}}"
artist: "{{fill}}"
album: "{{fill}}"
release_date: "{{fill}}"
genre: "{{fill}}"
language:
- "{{fill}}"
mood:
- "{{fill}}"
---
## Thoughts and Feelings
#### Musics Suggestion
1. [{{Fill Youtube title}}]({{Fill Youtube url}})
2. [{{Fill Youtube title}}]({{Fill Youtube url}})
3. [{{Fill Youtube title}}]({{Fill Youtube url}})
4. [{{Fill Youtube title}}]({{Fill Youtube url}})
5. [{{Fill Youtube title}}]({{Fill Youtube url}})
## Listen to Music
1. [{{Fill Youtube title}}]({{Fill Youtube url}})
2. [{{Fill Youtube title}}]({{Fill Youtube url}})
3. [{{Fill Youtube title}}]({{Fill Youtube url}})
4. [{{Fill Youtube title}}]({{Fill Youtube url}})
5. [{{Fill Youtube title}}]({{Fill Youtube url}})
## Lyrics
{{fill}}
"""
시행착오
1. 할루시에이션
실제하지 않는 Youtube 영상을 찾는 경우가 있었습니다.
n8n을 사용하면 해결해 볼 수 있을 것 같다.
2. Perplexity 동작 원리에 대한 추측
Perplexity에서 instruction으로 해결 못하는 치명적인 문제를 찾았습니다. (이 문제로 몇 시간을 삽질했어요.)
“All of me”라는 곡이 있는데, John Legend 버전과 Jazz Standard 버전이 있습니다.
그런데 John Legend의 것이 더 유명해서 Jazz Standard를 찾지 않는 것입니다.
Instruction을 조정해도 도저히 해결할 수 없었습니다.
프롬프트를 입력할 때 "jazz"라고 입력하면 해결되긴 합니다. (이 4글자 안쓰고 싶어서 고군분투 했습니다.)
이를 미루어보아 프롬프트만 검색에 사용하고, Instruction은 이후에 사용되는 것 같습니다.