chatbot-mimic-notes / text_selection_feature_guide.md
Jesse Liu
update files
c26f5b3
# Text Selection and Comment Feature Guide πŸ“
## New Feature Overview
We've added Microsoft Word-like text selection and comment functionality to the evaluation module! Now experts can:
1. **Select Any Text**: Click and drag to select any sentence or phrase in the AI-generated patient summary
2. **Add Precise Comments**: Add comments for specific selected text
3. **Manage Comments**: View all comments, clear comments, etc.
## How to Use
### 1. Select Patient Sample
- In the "πŸ”¬ Expert Evaluation" page, select a patient sample to evaluate
- The AI-generated summary will appear in a selectable text area
### 2. Select Text
- In the AI summary area, use mouse to **click and drag** to select text
- Selected text will automatically appear in the "🎯 Currently Selected Text" box
### 3. Add Comments
- Enter your comment in the "Comment for Selected Text" box
- Click "βž• Add Comment" button to save comment
- Comment will immediately be added to the "All Text Comments" list
### 4. Manage Comments
- View all comments in "All Text Comments"
- Click "πŸ—‘οΈ Clear All Comments" to clear all comments
- Can add multiple comments for different text segments
### 5. Submit Evaluation
- After completing text comments, fill in other evaluation fields
- Click "Submit Patient Evaluation" to submit complete evaluation
## Technical Features
### ✨ User Experience Improvements
- **Intuitive Text Selection**: Word-like click and drag selection
- **Real-time Feedback**: Selected text displays immediately
- **Clear Interface**: Separate comment display and management areas
### πŸ”§ Functionality Features
- **Precise Targeting**: Support for selecting text segments of any length
- **Multi-comment Support**: Can add multiple comments for different parts of the same summary
- **JSON Storage**: Comments saved in structured format for easy analysis
### πŸ“Š Data Format
Comment data storage format:
```json
{
"Selected text segment 1": "Corresponding comment content 1",
"Selected text segment 2": "Corresponding comment content 2"
}
```
## Usage Example
Suppose AI summary contains:
> "Patient presents with fever symptoms, temperature 38.5Β°C. Blood tests recommended to determine infection source."
Expert can:
1. Select "fever symptoms" β†’ Comment: "Symptom description accurate"
2. Select "Blood tests recommended" β†’ Comment: "Appropriate diagnostic approach"
3. Select "38.5Β°C" β†’ Comment: "Should specify measurement method"
This allows for precise, detailed feedback on specific portions of AI-generated medical summaries.