728x90
Obsidian Ollama 플러그인 사용에 필요한 설정 정리
설치
ollama 설치
https://ollama.com/ 에서 다운로드 후 설치
ollama 실행
- 실행
ollama run llama2
- 처음 실행하면 모델을 다운로드하고 실행됨
- 실행 후 아래 명령어를 입력하여 터미널 종료
/bye
다른 모델 사용시 아래 주소 참고
옵시디언 ollama 플러그인 설치
- 플러그인 검색
- 설정 -> 커뮤니티 플러그인 -> ollama 검색
- 혹은 링크 클릭 obsidian://show-plugin?id=ollama - hinterdupfinger의 ollama 플러그인 설치 후 활성화
️
사용
기본 사용법
- 텍스트를 선택한 후 팔레트에서 ollama를 검색하여 필요한 명령을 실행.
- ollama 플러그인에 필요한 명령에 숏컷 생성 후 실행.
명령어 커스텀
-
기본 명령어는 영어로 동작함. 따라서 한국어로 동작하도록 설정해줘야함.
-
설정 -> ollama(커뮤니티 플러그인) 에서 한국어로 답변하도록 새 명령어 생성.
ex)
New command name : 요약
New command prompt : 내용을 한국어 100자 내외로 요약해줘
New command model : llama2
후 Add command 버튼 클릭ex2) New command name : 짧은 글 작성 New command prompt : 이 주제로 한국어로 짧은 글을 작성해줘. New command model : llama2 후 Add command 버튼 클릭 ex3) New command name : 질문 New command prompt : 이 주제로 한국어로 짧은 글을 작성해줘. New command model : llama2 후 Add command 버튼 클릭
-
커스텀 후 옵시디언 재실행
테스트
아래 문장을 요약해달라고 함
Astro로 구축된 웹사이트는 기본적으로 JavaScript 없이 시작하고 비용이 많이 드는 모든 렌더링을 서버로 이동하기 때문에 성능이 뛰어납니다. SSG(정적 사이트 생성)가 기본값이지만 SSR(서버 측 렌더링)을 선택할 수도 있습니다.
Astro는 React와 엄격하게 연결되어 있지 않습니다. ".astro" 파일에서 UI 구성요소를 생성하는 기본 방식을 사용하여 UI 프레임워크 없이 Astro를 사용할 수 있습니다. 그러나 Astro를 사용하면 잘 디자인되고 기능적인 UI 구성 요소의 환경을 만드는 데 필요한 모든 경험을 이미 갖고 있는 선호하는 구성 요소 프레임워크(예: React)를 선택할 수 있습니다.
위 요약 예제 실행결과
Astro is a web framework that allows developers to build websites without using JavaScript. It uses server-side rendering (SSR) and static site generation (SSG) to improve website performance. Astro is not tightly coupled with React, so developers can use it without having to learn a new framework.
Here are some key points about Astro:
1. No JavaScript required: Astro allows developers to build websites without using JavaScript, which can improve website performance and accessibility.
2. Server-side rendering (SSR): Astro uses SSR to render web pages on the server, which can reduce the amount of work the browser has to do and improve page load times.
3. Static site generation (SSG): Astro supports SSG, which means that it can generate static HTML files for a website without requiring any server-side processing.
4. No need to learn a new framework: Astro is not tightly coupled with React, so developers who are already familiar with React can use Astro without having to learn a new framework.
5. Designed for ease of use: Astro is designed to be easy to use and intuitive, even for developers who are new to web development.
6. Supports popular frameworks: Astro supports popular frameworks like React, Vue, and Ember, so developers can use their existing skills and knowledge to build websites with Astro.️
소감
- 속도는 나쁘지 않음
- 한국어 잘 지원하는 모델을 찾아봐야 할 듯
- 어떤 땐 한국어 번역을 잘 하고 어떤땐 한국어 내용도 영어로 출력됨
'etc > 주제없음' 카테고리의 다른 글
openssl로 aes key 생성하기 (0) | 2024.04.29 |
---|---|
옵시디언 기본설정 (0) | 2023.11.02 |
원티드 바뀐 디자인 아이콘 바꿔봄 (0) | 2023.10.12 |