생성된 지식에 접근하는 아이디어는 최종적인 응답을 생성하기 전, LLM에게 특정 질문/프롬프트에 대한 유용한 정보를 생성하도록 요청하는 것입니다!

예를 들어, Spirit bear와 같은 동물에 대해 작은 블로그 글을 쓰려고 한다고 가정해볼까요?

LLM에게 블로그 글을 쓰기 전에 Spirit bear에 대한 몇 가지 사실을 생성하도록 요청할 수 있습니다. 이는 LLM이 더 많은 정보가 담긴 블로그 글을 쓰는 데 도움이 되기 때문이죠!

지금부터 이를 위한 두 가지 간단한 방법을 알려드리도록 하겠습니다!

#단일 프롬프트 접근 방식

첫 번째 접근 방식은 한 번의 프롬프트만으로 LLM이 지식을 생성한 다음 게시물을 작성하도록 요청하는 것 입니다!

Prompte ↓

Generate 4 facts about the Kermode bear, then use these facts to write a short blog post using the information:

Output ↓

The Kermode bear, also known as the spirit bear, is a rare subspecies of the American black bear that is found in the coastal regions of British Columbia, Canada.

  1. The Kermode bear is a unique subspecies of the American black bear, with approximately 10% of the population having white fur.
  2. The Kermode bear is a symbol of the First Nations people of British Columbia, and is seen as a spirit animal.
  3. The Kermode bear is an important part of the ecosystem, helping to disperse seeds and maintain the balance of the forest.
  4. The Kermode bear is a protected species, and its population is monitored closely by the provincial government.