NotesOllama로 Mac 메모장에서 자동 한글 번역을 사용해보자!
NotesOllama는 메모장에서 OpenLLM 구동할 수 있게 해주는 Application이다.
Obsidia Ollama에서 영감을 받아 만들었다고 한다. Good~
사용 요구사항은 Ollama가 구동 되어야한다. 각설 제외~ 하고 바로 Go~
1) Ollama 설치
Download Ollama on macOS
Download Ollama on macOS
ollama.com
2) NotesOllama 설치
https://smallest.app/notesollama/
NotesOllama
NotesCmdr Slash commands, markdown and templates for Apple Notes
smallest.app
Ollama에서 지원하는 Meta의 오픈 LLM LLama2를 사용해 Github Pull Request 예시를 작성하게 해보았다.
여기 까지만 해도 요약, 해답, 정리 등 다양한 기능이 있지만 Custom이 가능하다.
3) Github 파일 설치 (Mac Xcodes 필수 사용)
git clone https://github.com/andersrex/notesollama
https://github.com/andersrex/notesollama
GitHub - andersrex/notesollama: Use Ollama to talk to local LLMs in Apple Notes
Use Ollama to talk to local LLMs in Apple Notes. Contribute to andersrex/notesollama development by creating an account on GitHub.
github.com
4) /notesOllama/NotesOllama 폴더에 commands.json 수정
{
"commands": [
{
"name": "Translate selection",
"prompt": "Act as a Korean Translator. Translate into Korean. Output only the text and nothing else, do not chat, no preamble, get to the point."
},
{
"name": "Summarize selection",
"prompt": "Act as a writer. Summarize the text in a few sentences highlighting the key takeaways. Output only the text and nothing else, do not chat, no preamble, get to the point."
},
{
"name": "Explain selection",
"prompt": "Act as a writer. Explain the text in simple and concise terms keeping the same meaning. Output only the text and nothing else, do not chat, no preamble, get to the point."
},
{
"name": "Expand selection",
"prompt": "Act as a writer. Expand the text by adding more details while keeping the same meaning. Output only the text and nothing else, do not chat, no preamble, get to the point."
},
{
"name": "Answer selection",
"prompt": "Act as a writer. Answer the question in the text in simple and concise terms. Output only the text and nothing else, do not chat, no preamble, get to the point."
},
{
"name": "Rewrite selection (formal)",
"prompt": "Act as a writer. Rewrite the text in a more formal style while keeping the same meaning. Output only the text and nothing else, do not chat, no preamble, get to the point."
},
{
"name": "Rewrite selection (casual)",
"prompt": "Act as a writer. Rewrite the text in a more casual style while keeping the same meaning. Output only the text and nothing else, do not chat, no preamble, get to the point."
},
{
"name": "Rewrite selection (active voice)",
"prompt": "Act as a writer. Rewrite the text with an active voice while keeping the same meaning. Output only the text and nothing else, do not chat, no preamble, get to the point."
},
{
"name": "Rewrite selection (bullet points)",
"prompt": "Act as a writer. Rewrite the text into bullet points while keeping the same meaning. Output only the text and nothing else, do not chat, no preamble, get to the point."
},
{
"name": "Caption selection",
"prompt": "Act as a writer. Create only one single heading for the whole text that gives a good understanding of what the reader can expect. Output only the caption and nothing else, do not chat, no preamble, get to the point. Your format should be ## Caption."
}
]
}
5) NotesOllama Build
/notesOllama/NotesOllama/NotesOllama.xcodeproj 프로젝트 빌드
https://github.com/seohyunjun/notesollama
GitHub - seohyunjun/notesollama: Use Ollama to talk to local LLMs in Apple Notes
Use Ollama to talk to local LLMs in Apple Notes. Contribute to seohyunjun/notesollama development by creating an account on GitHub.
github.com
결과
아주 잘 작동하는 것을 볼 수 있다. Prompt를 잘 활용한다면 루틴을 보다 빠르게 수행할 수 있다.
https://github.com/seohyunjun/notesollama/releases/tag/v0.2.3-ko
Release v0.2.3-ko Non-Official · seohyunjun/notesollama
Use latest Version : https://github.com/andersrex/notesollama/tree/main
github.com
'Tools' 카테고리의 다른 글
[Github] Github PR(pull request) template 만들어 주는 사이트 (0) | 2024.03.05 |
---|---|
[Gemini] github action에서 gemini api 사용시 _CLOUD_SDK_MISSING_CREDENTIALS Auth Error (0) | 2024.03.03 |
[Gemini-pro] 구글 잼미니 Pro, beta 무료 (0) | 2024.02.09 |
[Candle] huggingface Candle (0) | 2024.01.24 |
[Github Copilot] Prompt crafting (0) | 2023.12.02 |