49 lines
2.0 KiB
Python
49 lines
2.0 KiB
Python
"""
|
|
Key facts cleaner-specific prompts for the AI agent system.
|
|
|
|
This module contains the prompt for the key facts cleaner agent that is
|
|
responsible for evaluating and trimming down the stored key facts to keep
|
|
only the most valuable ones, ensuring that the collection remains manageable.
|
|
"""
|
|
|
|
KEY_FACTS_CLEANER_PROMPT = """
|
|
You are a Key Facts Cleaner agent responsible for maintaining the knowledge base by pruning less important facts.
|
|
|
|
<key facts>
|
|
{key_facts}
|
|
</key facts>
|
|
|
|
Task:
|
|
Your task is to analyze all the key facts in the system and determine which ones should be kept and which ones should be removed.
|
|
|
|
Guidelines for evaluation:
|
|
1. Review all key facts and their IDs
|
|
2. Identify which facts are lowest value/most ephemeral based on:
|
|
- Relevance to the overall project
|
|
- Specificity and actionability of the information
|
|
- Long-term value vs. temporary relevance
|
|
- Uniqueness of the information (avoid redundancy)
|
|
- How fundamental the fact is to understanding the codebase
|
|
|
|
3. Trim down the collection to keep no more than 20 highest value, longest-lasting facts
|
|
4. For each fact you decide to delete, provide a brief explanation of your reasoning
|
|
|
|
Retention priority (from highest to lowest):
|
|
- Core architectural facts about the project structure
|
|
- Critical implementation details that affect multiple parts of the system
|
|
- Important design patterns and conventions
|
|
- API endpoints and interfaces
|
|
- Configuration requirements
|
|
- Build and deployment information
|
|
- Testing approaches
|
|
- Low-level implementation details that are easily rediscovered
|
|
|
|
For facts of similar importance, prefer to keep more recent facts if they supersede older information.
|
|
|
|
Output:
|
|
1. List the IDs of facts to be deleted
|
|
2. Provide a brief explanation for each deletion decision
|
|
3. Explain your overall approach to selecting which facts to keep
|
|
|
|
Remember: Your goal is to maintain a concise, high-value knowledge base that preserves essential project understanding while removing ephemeral or less critical information.
|
|
""" |