# Use Cases

Groq's compound systems excel at a wide range of use cases, particularly when real-time information is required.

## Real-time Fact Checker and News Agent

Your application needs to answer questions or provide information that requires up-to-the-minute knowledge, such as:
- Latest news
- Current stock prices
- Recent events
- Weather updates

Building and maintaining your own web scraping or search API integration is complex and time-consuming.

### Solution with Compound
Simply send the user's query to `groq/compound`. If the query requires current information beyond its training data, it will automatically trigger its built-in web search tool to fetch relevant, live data before formulating the answer.

### Why It's Great
- Get access to real-time information instantly without writing any extra code for search integration
- Leverage Groq's speed for a real-time, responsive experience

### Code Example

### Why It's Great
- Provides a unified interface for getting code help
- Potentially draws on live web data for new errors
- Executes code directly for validation
- Speeds up the debugging process

**Note**: `groq/compound-mini` uses one tool per turn, so it might search OR execute, not both simultaneously in one response.

## Chart Generation

Need to quickly create data visualizations from natural language descriptions? Compound's code execution capabilities can help generate charts without writing visualization code directly.

### Solution with Compound
Describe the chart you want in natural language, and Compound will generate and execute the appropriate Python visualization code. The model automatically parses your request, generates the visualization code using libraries like matplotlib or seaborn, and returns the chart.

### Why It's Great
- Generate charts from simple natural language descriptions
- Supports common chart types (scatter, line, bar, etc.)
- Handles all visualization code generation and execution
- Customize data points, labels, colors, and layouts as needed

### Usage and Results

## Natural Language Calculator and Code Extractor

You want users to perform calculations, run simple data manipulations, or execute small code snippets using natural language commands within your application, without building a dedicated parser or execution environment.

### Solution with Compound

Frame the user's request as a task involving computation or code. `groq/compound-mini` can recognize these requests and use its secure code execution tool to compute the result.

### Why It's Great
 - Effortlessly add computational capabilities
 - Users can ask things like:
   - "What's 15% of $540?"
   - "Calculate the standard deviation of [10, 12, 11, 15, 13]"
   - "Run this python code: print('Hello from Compound!')"

## Code Debugging Assistant

Developers often need quick help understanding error messages or testing small code fixes. Searching documentation or running snippets requires switching contexts.

### Solution with Compound
Users can paste an error message and ask for explanations or potential causes. Compound Mini might use web search to find recent discussions or documentation about that specific error. Alternatively, users can provide a code snippet and ask "What's wrong with this code?" or "Will this Python code run: ...?". It can use code execution to test simple, self-contained snippets.

### Why It's Great
- Provides a unified interface for getting code help
- Potentially draws on live web data for new errors
- Executes code directly for validation
- Speeds up the debugging process

**Note**: `groq/compound-mini` uses one tool per turn, so it might search OR execute, not both simultaneously in one response.

---

## Search Settings: Page (mdx)