Description
The Smart Clean mode uses LLM prompts to clean documents. We can improve the prompts to get better results.
Use Case
Current Smart Clean sometimes removes content that should be kept or keeps content that should be removed. Better prompts could improve accuracy.
Proposed Solution
Research and improve the prompt in SmartCleaner.buildPromptForChunk():
- Add more examples
- Clarify edge cases
- Improve instructions for context preservation
- Add instructions for handling tables, lists, code blocks
Files to Modify
docs/assets/app.js - SmartCleaner class, buildPromptForChunk method
Research Areas
- Prompt engineering best practices
- Few-shot learning examples
- Context window optimization
Impact
- Who benefits: All Smart Clean users
- Priority: High
- Complexity: Medium
Description
The Smart Clean mode uses LLM prompts to clean documents. We can improve the prompts to get better results.
Use Case
Current Smart Clean sometimes removes content that should be kept or keeps content that should be removed. Better prompts could improve accuracy.
Proposed Solution
Research and improve the prompt in
SmartCleaner.buildPromptForChunk():Files to Modify
docs/assets/app.js-SmartCleanerclass,buildPromptForChunkmethodResearch Areas
Impact