-
Notifications
You must be signed in to change notification settings - Fork 0
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
LLM analysis #6
Draft
Lucs1590
wants to merge
21
commits into
main
Choose a base branch
from
llm-analysis
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
LLM analysis #6
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The `validate_tcx_file` function now returns a tuple with a boolean indicating the validation result and the TCXReader object. This change allows for performing LLM analysis on the TCX data if the user chooses to do so.
The `requirements.txt` file has been updated to include specific versions for the `defusedxml`, `pandas`, `python-dotenv`, and `questionary` packages. This ensures that the project uses the specified versions of these dependencies. Note: The recent user commits and recent repository commits are not directly related to the code changes in this case, so they are not considered for the commit message.
This commit adds an AI Assistant prompt for LLM analysis in the `perform_llm_analysis` function. The prompt provides guidance to athletes on how to improve their performance based on the training session data. The prompt includes information about the sport, the data, and an optional plan. This feature aims to enhance the user experience and help athletes make informed decisions to improve their performance.
This commit improves the AI Assistant prompt in the `perform_llm_analysis` function for LLM analysis. The prompt now includes a CSV data section, providing athletes with a clearer understanding of the training session data. This enhancement aims to help athletes identify positive and negative points in their performance and provides recommendations for improvement in the next session. Note: The recent user commits and recent repository commits are not directly related to the code changes in this case, so they are not considered for the commit message.
This commit adds the OpenAI language model for LLM analysis in the `perform_llm_analysis` function. The model is initialized with the OpenAI API key and configured with the `gpt-4o` model name and a maximum token limit of 500. The AI analysis is performed using the model, and the response is logged. This enhancement aims to provide more accurate and insightful analysis for athletes to improve their performance.
This commit refactors the perform_llm_analysis function by extracting the preprocessing of trackpoints data into a separate function called preprocess_trackpoints_data. The function takes the TCXReader object as input and returns a preprocessed DataFrame. This refactoring improves code readability and maintainability by separating concerns and promoting code reuse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing this PR! We will validade soon.
Open
3 tasks
This commit refactors the ask_file_path function in the main.py file. The function now includes separate logic for when the file location is "Provide path" and when it is not. It also introduces a validation function to check if the provided path is a valid file or an empty string. This refactoring improves code readability and maintainability by separating concerns and promoting code reuse.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.