728x90

NotesOllama๋กœ Mac ๋ฉ”๋ชจ์žฅ์—์„œ ์ž๋™ ํ•œ๊ธ€ ๋ฒˆ์—ญ์„ ์‚ฌ์šฉํ•ด๋ณด์ž!

 

NotesOllama๋Š” ๋ฉ”๋ชจ์žฅ์—์„œ OpenLLM ๊ตฌ๋™ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” Application์ด๋‹ค. 

Obsidia Ollama์—์„œ ์˜๊ฐ์„ ๋ฐ›์•„ ๋งŒ๋“ค์—ˆ๋‹ค๊ณ  ํ•œ๋‹ค. Good~ 

์‚ฌ์šฉ ์š”๊ตฌ์‚ฌํ•ญ์€ Ollama๊ฐ€ ๊ตฌ๋™ ๋˜์–ด์•ผํ•œ๋‹ค.  ๊ฐ์„ค ์ œ์™ธ~ ํ•˜๊ณ  ๋ฐ”๋กœ Go~ 

 

1) Ollama ์„ค์น˜ 

https://ollama.com/download

 

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

 

๋ฐ˜์‘ํ˜•
๋‹คํ–ˆ๋‹ค