728x90
반응형
Prompt crafting이란?
- LLM으로 돌아가는 Github Copilit에게 Clear instructions(명확한 지시)를 제공하는 것
- Context(맥락)
- Intent(의도)
- Clarity(명확성), 공식 Document에서 용어
- Specificity
- 예시) 아이스크림을 줄래?
- 어떤 맛의 아이스크림?
- 토핑은 추가 할거니?
- 크기는 어떻니?
Comment driven development
1) Describe the goal
- Header 기입 : 하려는 Task에 대한 기술 정의, 어떤 프레임워크를 사용해서 만들것인지, 작성하려는 code language는 무엇인지 짧게 3~4줄 정도
2) Be flexible - flexible, AI 도구는 deteministic(결정론적)이 아닌 probabilistic(확률론적)이다.
- 오늘 작성한 AI prompt의 code가 내일 달라질 수 있다.
- 계속 시도를 해가면서 방향을 잡아야한다.
3) Provide examples - 지금 내가 하려는 points를 prompt에 예시로 보여준다. (few-shot)
Good code begets good code
1) Name things properly
- 부절한 변수 명과 (a, b ...)과 context(doc)이 없는 function 사용
2) Follow best practices
3) Open relevant files - custom frameworks 개발시 prompt가 이해하지 못하는 예시를 사용할 경우
- Tab에 관련 없는 내용의 script 사용 자재
"Above all else, go with the flow"
반응형
'Tools' 카테고리의 다른 글
[NotesOllama] Mac Default Memo Application + OpenLLM(Custom) (0) | 2024.02.25 |
---|---|
[Gemini-pro] 구글 잼미니 Pro, beta 무료 (0) | 2024.02.09 |
[Candle] huggingface Candle (0) | 2024.01.24 |
[Ubuntu] Vim plugin 설치(들여쓰기, 자동괄호) (0) | 2020.05.31 |
[Ubuntu] 우분투 서버에 자바 설치 (0) | 2020.04.05 |