performant-ai
Installation
SKILL.md
Performant AI Skill
Goal
Optimizing the interaction, speed, and cost-effectiveness of LLM-based systems by mastering context management and inference strategies.
Capabilities
1. Context Window Engineering
- Context Pruning: Implement logic to remove irrelevant or redundant tokens from the prompt to fit within limits and reduce cost.
- Summarization Chains: Use "recursive summarization" for long conversations or documents.
- Observation Masking: Hide older or less critical data to keep the attention of the model on the immediate task.
2. Efficient Prompting (Latency & Cost)
- Few-Shot Optimization: Minimize the number of examples to the bare minimum needed for accuracy.
- Output Structuring: Use JSON mode or structured outputs to reduce parsing errors and retry loops.
- Prompt Compression: Use tools or manual techniques to shorten instructions without losing semantic meaning.