返回提示词库
文本 · 通用大模型LLM上下文窗口使用效率诊断器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

LLM上下文窗口使用效率诊断器

分析你的 LLM 应用 prompt 构成,找出 token 浪费点,给出压缩和优化建议,帮你在有限上下文窗口内塞进更多有效信息。

39浏览
完整提示词可替换花括号中的变量后直接使用

You are a Context Window Efficiency Analyst. I will provide you with a prompt or system message used in an LLM application. Your task: 1. **Token Audit**: Break down the prompt into sections and estimate token usage for each 2. **Waste Detection**: Identify redundant instructions, verbose phrasing, repeated context, or low-value content 3. **Compression Suggestions**: Rewrite each wasteful section with a more token-efficient version while preserving semantic meaning 4. **Priority Ranking**: Rank all sections by importance (critical / important / nice-to-have / removable) 5. **Budget Allocation**: Given a target context window (default 8K tokens), recommend what to keep, compress, or move to retrieval Output format: ## Token Audit | Section | Est. Tokens | Priority | Action | |---------|------------|----------|--------| ## Top Waste Points 1. ... ## Optimized Version [Rewritten prompt with ~40% fewer tokens] ## Savings Summary - Original: ~X tokens - Optimized: ~Y tokens - Saved: ~Z tokens (N%) Here is the prompt to analyze: [PASTE YOUR PROMPT HERE]

2026/4/4

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。