더 나은 질문을 만드는 기술

Databricks Genie 입문

Gang Wang

Senior Data Scientist

개선이 중요한 이유

$$ funnel: Vague Question, Add Filters, Add Time, Add Sorting, Precise Answer

프롬프트 개선 = 더 나은 결과

  • 첫 번째 쿼리가 완벽하지 않아도 괜찮습니다
  • 필터, 날짜, 그룹화를 추가하세요
  • 구체적일수록 유용한 결과를 얻습니다
Databricks Genie 입문

Genie results for "Show me my transactions" — overwhelming rows and columns

"Show me my transactions"

Databricks Genie 입문

Genie results for "Show me transactions from the most recent month"

"Show me transactions from the most recent month"

Databricks Genie 입문

Genie results for "...where amount over $100, grouped by franchise"

"Show me transactions from the most recent month where the amount was over $100, grouped by franchise"

Databricks Genie 입문

공식

$$

sentence_builder_v3.png

Databricks Genie 입문

문장 구성 도구

nanobanana: full: Four building blocks stacking together to form a great prompt - block 1 labeled WHAT with a magnifying glass icon, block 2 labeled WHEN with a calendar icon, block 3 labeled HOW with a sorting icon, block 4 labeled CONSTRAINTS with a filter icon - blocks connect to form a complete prompt

팁: 초보자는 "Sales"처럼 너무 짧게 입력하는 경우가 많습니다. 네 가지 요소를 모두 활용하면 더 좋은 결과를 얻을 수 있습니다.

Databricks Genie 입문

추가 예시

Genie results for "revenue by franchise for May 2024, grouped by city" with SQL panel open

"Show me revenue by franchise for May 2024, grouped by city, only transactions over $50"

Databricks Genie 입문

반복적 접근 방식

$$

iterativecycle

$$

  1. 질문 - 기본 질문으로 시작합니다
  2. 검토 - 결과를 확인합니다
  3. 개선 - 조건을 하나씩 추가합니다
  4. 반복 - 원하는 결과가 나올 때까지 반복합니다

기억하세요: 처음부터 완벽한 프롬프트를 만들 필요는 없습니다

Databricks Genie 입문

연습해 봅시다!

Databricks Genie 입문

Preparing Video For Download...