Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf:제목생성프롬프트개선 #52

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions app/prompts/resume_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@
# 프로젝트 이름 생성
PROJECT_TITLE_PROMPT = (

"Return the best project title as plain text. "
"Do not include any additional explanation, formatting, or context. "
"Only provide the title itself."
"- Be concise yet descriptive.\n"
"- Reflect the essence and purpose of the project.\n"
"- Avoid overly generic terms like 'Game' unless it is the only appropriate option.\n\n"
"Your response should return a title that feels natural and well-aligned with the project context. "
"Provide only the title as plain text, without additional explanation or formatting."
)

# 맡은 업무 생성
Expand Down
3 changes: 1 addition & 2 deletions app/services/gpt_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,9 @@ def generate_project_title(openai_api_key, gh_token, repo_url, prompt=settings.p
"role": "system",
"content": (
"You are a professional assistant tasked with deciding the best project title. "
"1. Be a single, clear, and concise word."
"1. Be a single, clear"
"2. Reflect the essence or purpose of the project."
"3. Avoid multi-word phrases, additional context, or unnecessary details. "
"Return only the single-word title as plain text."
)
},
{
Expand Down
Loading