Dynamic Context Window Manager

Dynamic Context Window Manager

Model: GPT-4
Difficulty: Advanced
Upvotes: 0
context managementoptimizationRAG

โ€” Prompt โ€”

Adjust the context window for [task] by selecting only the most relevant information from: [content]. Output the pruned context.

Why It Works

Prevents context overload while keeping critical information.

Example Output

Removed irrelevant product reviews, retained only those from the past 6 months for the analysis.