본문으로 건너뛰기
Skillpedia
프롬프트 및 LLM40k · #7064

arize-prompt-optimization

하는 일

이 도구는 AI의 응답을 개선하는 데 도움을 줍니다. 질문(프롬프트)이 어떻게 되었는지 분석하고, 더 정확한 결과를 얻도록 더 잘 쓰는 방법을 제안합니다.

사용하는 경우

  • ✓AI 응답이 좋지 않을 때.
  • ✓AI를 더 효율적으로 만들고 싶을 때.
  • ✓AI를 위한 새 지침을 만들 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/arize-prompt-optimization/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/arize-prompt-optimization/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“AI가 제 질문에 더 잘 응답하도록 하려면 어떻게 해야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이전 AI 응답 방식의 데이터를 살펴보고, 그 정보를 이용해 지침을 조정합니다. 이 과정은 성능을 최적화하기 위해 자동으로 이루어집니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Arize Prompt Optimization Skill

SPACE — All --space flags and the ARIZE_SPACE env var accept a space name (e.g., my-workspace) or a base64 space ID (e.g., U3BhY2U6...). Find yours with ax spaces list.

Concepts

Where Prompts Live in Trace Data

LLM applications emit spans following OpenInference semantic conventions. Prompts are stored in different span attributes depending on the span kind and instrumentation:

Column What it contains When to use
attributes.llm.input_messages Structured chat messages (system, user, assistant, tool) in role-based format Primary source for chat-based LLM prompts
attributes.llm.input_messages.roles Array of roles: system, user, assistant, tool Extract individual message roles
attributes.llm.input_messages.contents Array of message content strings Extract message text
attributes.input.value Serialized prompt or user question (generic, all span kinds) Fallback when structured messages are not available
attributes.llm.prompt_template.template Template with {variable} placeholders (e.g., "Answer {question} using {context}") When the app uses prompt templates
attributes.llm.prompt_template.variables Template variable values (JSON object) See what values were substituted into the template
attributes.output.value Model response text See what the LLM produced
attributes.llm.output_messages Structured model output (including tool calls) Inspect tool-calling responses

Finding Prompts by Span Kind

  • LLM span (attributes.openinference.span.kind = 'LLM'): Check attributes.llm.input_messages for structured chat messages, OR attributes.input.value for a serialized prompt. Check attributes.llm.prompt_template.template for the template.
  • Chain/Agent span: attributes.input.value contains the user's question. The actual LLM prompt lives on child LLM spans -- navigate down the trace tree.
  • Tool span: attributes.input.value has tool input, attributes.output.value has tool result. Not typically where prompts live.

Performance Signal Columns

These columns carry the feedback data used for optimization:

Column pattern Source What it tells you
annotation.<name>.label Human reviewers Categorical grade (e.g., correct, incorrect, partial)
annotation.<name>.score Human reviewers Numeric quality score (e.g., 0.0 - 1.0)
annotation.<name>.text Human reviewers Freeform explanation of the grade
eval.<name>.label LLM-as-judge evals Automated categorical assessment
eval.<name>.score LLM-as-judge evals Automated numeric score
eval.<name>.explanation LLM-as-judge evals Why the eval gave that score -- most valuable for optimization
attributes.input.value Trace data What went into the LLM
attributes.output.value Trace data What the LLM produced
{experiment_name}.output Experiment runs Output from a specific experiment

Prerequisites

Proceed directly with the task — run the ax command you need. Do NOT check versions, env vars, or profiles upfront.

If an ax command fails, troubleshoot based on the error:

  • command not found or version error → see references/ax-setup.md
  • 401 Unauthorized / missing API key → run ax profiles show to inspect the current profile. If the profile is missing or the API key is wrong, follow references/ax-profiles.md to create/update it. If the user doesn't have their key, direct them to https://app.arize.com/admin > API Keys
  • Space unknown → run ax spaces list to pick by name, or ask the user
  • Project unclear → ask the user, or run ax projects list -o json --limit 100 and present as selectable options
  • LLM provider call fails (missing OPENAI_API_KEY / ANTHROPIC_API_KEY) → run ax ai-integrations list --space SPACE to check for platform-managed credentials. If none exist, ask the user to provide the key or create an integration via the arize-ai-provider-integration skill
  • Security: Never read .env files or search the filesystem for credentials. Use ax profiles for Arize credentials and ax ai-integrations for LLM provider keys. If credentials are not available through these channels, ask the user.

Phase 1: Extract the Current Prompt

Find LLM spans containing prompts


…
자주 묻는 질문

‘스팬(span)’이란 무엇인가요?

AI가 거치는 각 단계의 기록입니다. 질문을 처리하는 동안 무슨 일이 일어났는지 이해하는 데 도움이 됩니다.

‘프롬프트’란 무엇인가요?

AI에게 주는 지침이나 질문입니다. 프롬프트의 품질이 응답의 품질에 직접적인 영향을 줍니다.

여기서 ‘최적화’는 무엇을 의미하나요?

무언가를 가능한 가장 좋은 방식으로 작동하게 만드는 것입니다. 이 경우 좋은 답변을 얻기 위해 AI의 지침을 가장 효과적으로 만드는 것을 뜻합니다.

상세 정보

작성자의 원본 설명

Optimizes, improves, and debugs LLM prompts using production trace data, evaluations, and annotations. Extracts prompts from spans, gathers performance signal, and runs a data-driven optimization loop using the ax CLI. Use when the user mentions optimize prompt, improve prompt, make AI respond better, improve output quality, prompt engineering, prompt tuning, or system prompt improvement.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7064
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬