Skip to content

Commit

Permalink
refactor: enhance prompt template for LLM analysis with clearer struc…
Browse files Browse the repository at this point in the history
…ture and motivational language
  • Loading branch information
Lucas Brito committed Nov 20, 2024
1 parent 5dec2ea commit 5dafb9d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,18 @@ def perform_llm_analysis(data: TCXReader, sport: str, plan: str, language: str)
dataframe = preprocess_trackpoints_data(data)

prompt_template = """
SYSTEM: You are an AI coach helping athletes optimize and improve their performance.
Based on the provided {sport} training session data, perform the following analysis and provide feedback to the athlete in {language} language:
1. Identify key performance metrics.
2. Highlight the athlete's strengths during the session.
3. Pinpoint areas where the athlete can improve.
4. Offer actionable suggestions for enhancing performance in future {sport} sessions.
Training session data:
SYSTEM: You are an AI performance coach specializing in analyzing athletic performance to help athletes with their trainings.
Using the provided {sport} training session data, analyze the athlete's performance and deliver a detailed analysis and practical advice in {language} language.
Your analysis should include:
1. Key Performance Metrics: Identify and Evaluate the most relevant metrics from the session, understanding the athlete's overall performance
2. Strengths: Highlight the athlete's strongest aspects during the session, supported by specific metrics.
3. Improvement Opportunities: Pinpoint specific areas for growth and improvement.
4. Actionable Suggestions: Provide clear, practical recommendations to help the athlete enhance their performance in future {sport} sessions.
Ensure your response is data-driven, clear, and motivational, helping the athlete make measurable progress.
Training Session Data:
{training_data}
"""

Expand Down

0 comments on commit 5dafb9d

Please sign in to comment.