Skip to content

[ENHANCEMENT] Improve Smart Clean prompt for better results #5

@kiku-jw

Description

@kiku-jw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsmart-cleanSmart Clean (AI) related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions