Large Language Models (LLMs) are revolutionizing data analysis by making complex analytical tasks more accessible through natural language interfaces. This guide outlines best practices for prompting LLMs effectively in your data analysis workflow.
Analyze this sales data
Identify the top 3 performing products by revenue in Q2 2024
When working with LLMs, explicit instructions produce more accurate and relevant results. Never assume the model understands your implicit goals or context. Spell out exactly what you need.
Tell me something about this customer dataset
Calculate the customer retention rate for each month in 2024, segmented by customer tier
Specific prompts guide the LLM toward precise analytical goals. General prompts often result in generic observations that may not address your actual analytical needs.
Analyze customer churn, create a forecast model, identify key drivers, suggest retention strategies, and create visualizations all from this dataset.
First, calculate the monthly customer churn rate from this dataset. After reviewing those results, we'll explore potential drivers.
Break complex analyses into sequential steps. This creates a clearer analytical path and allows you to review intermediate results before proceeding.
Find outliers in this dataset
Identify outliers in the transaction amounts column using the IQR method, defining outliers as values beyond 1.5 * IQR from the quartiles
Specify your analytical parameters, methodologies, and thresholds to ensure the LLM applies the appropriate techniques.
Run a statistical test on these two groups
Run an appropriate statistical test to determine if the difference in HbA1c reduction between groups is statistically significant. We're particularly concerned about Type II errors due to our relatively small sample size
Contextual information helps the LLM understand the business environment and deliver more relevant analyses.
Standardize phone numbers in this dataset
Standardize phone numbers in this dataset to the format (XXX) XXX-XXXX
Examples clarify your expectations and improve the precision of LLM responses.
This iterative approach leverages the LLM as a collaborative analytical partner.
Keptune AI enables agentic analysis workflows and provides several advantages: