Skip to content

Commit b3ede3a

Browse files
Update prompting/maximize-token-efficiency.mdx
Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
1 parent 8f92ce1 commit b3ede3a

1 file changed

Lines changed: 41 additions & 43 deletions

File tree

prompting/maximize-token-efficiency.mdx

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -128,73 +128,71 @@ When you just want to talk and plan (not write code), use discussion mode:
128128
**Use Git**: Save your work with Git instead of asking AI to undo things. It's free!
129129
</Callout>
130130

131-
## Model Selection Strategies
131+
## Choosing the Right AI Model
132132

133-
### Choose Appropriate Models
133+
### Pick the Right Model for the Job
134134

135-
Different AI models have different strengths and token costs:
135+
Different AI models cost different amounts:
136136

137-
- **Use smaller models** for simple tasks, drafting, and initial development
138-
- **Reserve larger models** for complex reasoning, code review, and final polishing
139-
- **Consider model context limits** when working with large codebases
140-
- **Balance cost vs. capability** based on your current development phase
137+
- **Cheaper models** for simple tasks and quick questions
138+
- **Expensive models** for hard problems and important code
139+
- **Check limits** - some models can't handle huge projects
140+
- **Balance cost and quality** based on what you're doing
141141

142-
### Provider-Specific Optimization
142+
### Different AI Models
143143

144-
**Anthropic Claude:**
144+
**Claude (Anthropic):**
145145

146-
- Excellent for reasoning and code generation
147-
- Higher token costs but superior code quality
148-
- Best for complex development tasks
146+
- Great at understanding and writing code
147+
- Costs more but gives better results
148+
- Use for complex projects
149149

150-
**OpenAI GPT:**
150+
**GPT (OpenAI):**
151151

152-
- Fast and cost-effective for many tasks
153-
- Good for quick iterations and prototyping
154-
- Consider GPT-4 for complex reasoning tasks
152+
- Fast and cheaper for many tasks
153+
- Good for trying things out quickly
154+
- Use GPT-4 for harder problems
155155

156-
**Other Providers:**
156+
**Other Models:**
157157

158-
- Evaluate based on specific use cases
159-
- Consider regional availability and data privacy requirements
160-
- Compare pricing and performance for your workload
158+
- Check what they're good at
159+
- Some work better in certain countries
160+
- Compare prices for what you need
161161

162-
## Advanced Optimization Techniques
162+
## Advanced Tips
163163

164-
### Context Management
164+
### Focus Your Requests
165165

166-
**File-Specific Requests:**
166+
**Be specific about files:**
167167

168-
- Reference specific files instead of asking about "the entire codebase"
169-
- Use imports and dependencies to provide necessary context
170-
- Focus on individual components rather than full applications
168+
- Name the exact files you're working on
169+
- Don't ask about "the whole project"
170+
- Focus on one part at a time
171171

172-
**Progressive Development:**
172+
**Build gradually:**
173173

174-
- Build core functionality first, then add features incrementally
175-
- Test each component thoroughly before moving to the next
176-
- Use modular architecture to keep context windows manageable
174+
- Start with the main features
175+
- Test each piece before adding more
176+
- Keep your code organized in small pieces
177177

178-
### Performance Monitoring
178+
### Watch Your Usage
179179

180-
**Track Your Usage:**
180+
**Track what you use:**
181181

182-
- Monitor token consumption across different tasks
183-
- Identify patterns in high-token activities
184-
- Adjust your approach based on usage analytics
182+
- See which tasks use the most tokens
183+
- Notice patterns in what costs more
184+
- Change your approach based on what you learn
185185

186-
**Optimize Workflows:**
186+
**Work smarter:**
187187

188-
- Combine related changes into single requests
189-
- Use batch operations when possible
190-
- Plan complex changes to minimize back-and-forth communication
188+
- Combine related requests into one
189+
- Do multiple things at once when possible
190+
- Plan ahead to avoid going back and forth
191191

192192
<Callout type="info">
193-
**Token Awareness**: Understanding token consumption helps you work more efficiently and control costs. Focus on
194-
quality over quantity in your interactions.
193+
**Be Aware**: Understanding tokens helps you save money. Focus on asking good questions, not lots of questions.
195194
</Callout>
196195

197196
<Callout type="tip">
198-
**Continuous Learning**: As you work more with AI models, you'll develop intuition for which approaches are most
199-
token-efficient for different types of tasks.
197+
**Learn as You Go**: The more you use AI, the better you'll get at knowing which approach saves the most tokens.
200198
</Callout>

0 commit comments

Comments
 (0)