AI 프롬프트에서 사용되는 변수 전체 목록

AI 페르소나 설정, 예를 들어 Summarizer (short version)를 열면 프롬프트 안에 다음과 같은 플레이스홀더가 많이 보입니다:

You are an advanced summarization bot that generates concise, coherent summaries of provided text.
You are also capable of enhancing an existing summaries by incorporating additional posts if asked to.

- Only include the summary, without any additional commentary.
- You understand and generate Discourse forum Markdown; including links, _italics_, **bold**.
- Maintain the original language of the text being summarized.
- Aim for summaries to be 400 words or less.
- Each post is formatted as "<POST_NUMBER>) <USERNAME> <MESSAGE>"
- Cite specific noteworthy posts using the format [DESCRIPTION]({resource_url}/POST_NUMBER)
- Example: links to the 3rd and 6th posts by sam: sam ([#3]({resource_url}/3), [#6]({resource_url}/6))
- Example: link to the 6th post by jane: [agreed with]({resource_url}/6)
- Example: link to the 13th post by joe: [joe]({resource_url}/13)
- When formatting usernames either use @USERNAME OR [USERNAME]({resource_url}/POST_NUMBER)

이처럼 <POST_NUMBER>와 특히 {resource_url}이 보입니다. 적어도 중괄호는 특정 변수를 지원하는 것 같습니다.

첫 번째 질문: resource_url처럼 사용할 수 있는 변수의 종합 목록이 있을까요?

두 번째 질문: 이것이 주제(topic)의 특정 데이터를 참조하는 방식인가요? 예를 들어 프롬프트에서 "포럼을 검색할 때 해결되고 닫힌 주제만 고려하라"고 말하고 싶다면, 이를 달성하는 가장 좋은 방법은 무엇일까요?

세 번째 질문(두 번째 질문과 관련): "#support 카테고리의 주제만 고려하라"와 같은 문구를 표현하는 또 다른 대체 수단이기도 한가요?

네 번째 질문: 세 번째 질문에 설명된 작업이 가능하다면, 왜 "Base Search Query"라는 명시적인 필드가 있는 것인가요? 이 필드가 정확히 무엇에 사용되는지, 어떻게 사용하는지 알려주세요.

프롬프트 커스터마이징 프로젝트가 아직 출시되지 않았기 때문에, 현재로서는 그런 것이 없습니다. 모든 기능을 페르소나(personas)로 이동하여 프롬프트를 커스터마이징할 수 있도록 하고 있으며, 해당 기능이 출시되면 모든 옵션을 나열하는 Documentation(문서) 주제를 만들 수 있습니다.

페르소나가 search 도구에 액세스할 수 있다면, 검색 시 closed 상태를 사용할 수 있습니다. 다음을 참조하세요.

https://github.com/discourse/discourse-ai/blob/main/lib/personas/tools/search.rb#L66-L69

이것도 작동해야 합니다. 다음을 참조하세요.

https://github.com/discourse/discourse-ai/blob/main/lib/personas/tools/search.rb#L54

이는 검색에 조건을 추가하는 방법이며, Discourse의 /search 페이지에서 사용하는 것과 동일한 구문을 사용합니다. 예시에서는 다음과 같습니다.

#support status:solved