Quick Start: Your First LLM Application
This guide walks you through creating, evaluating, and deploying your first LLM application using Agenta's user interface. In just a few minutes, you'll have a working prompt that you can use in production.
⏯️ Watch a short demo of the quick start guide.
What You'll Learn
By the end of this tutorial, you'll know how to:
- Create a new prompt and bootstrap a test set from interactions in the playground
- Run evaluations from the UI to measure the prompt performance
- Deploy prompts to production environments and integrate them with your applications
- Trace prompt interactions and usage
Step 1: Create Your First Prompt
Let's start by creating a simple prompt that returns the capital city of any country.
Creating the Application
- Click "Create New Prompt" on your dashboard
- Select "Completion Prompt" from the options
- Name your prompt "get_capital"
Agenta supports two main prompt types:
- Completion Prompts: Single-turn prompts for generating one response (like summaries, translations, or factual answers)
- Chat Prompts: Multi-turn prompts for conversations (like chatbots or interactive assistants)
For this tutorial, we're using a completion prompt since we want a single, direct answer.
Step 2: Test and Improve Your Prompt
Now let's experiment with the prompt in Agenta's playground to make sure it works correctly.
Initial Testing
The template comes with a basic prompt for getting country capitals. Let's test it:
- Go to the playground (it should open automatically after creating your prompt)
- Enter "France" in the input field
- Click "Run" to test the prompt
- Check the result - it should return "The capital of France is Paris"
Refining the Prompt
The current response is a full sentence, but let's say we want just the city name. We can improve this:
-
Edit the prompt to be more specific:
What is the capital of {{country}}? Answer with only the capital name. -
Change the model to "gpt-4o-mini" for better performance:
- Run the prompt again with "France" as input
- Verify the result now shows just "Paris"
Saving Your Changes
Now let's save this improved version:
- Click the "Commit" button
- Select "As a new variant"
- Name the variant "explicit-prompt"
Variants in Agenta work like branches in Git repositories. Each variant is versioned. You can use variants to experiment with different concepts (e.g., long prompt and short prompt), different models (gpt-4o-mini and gpt-4o), or have different team members work (alex variant1, amani-var2).