Document Groups¶
Document Groups allow you to organize your library into logical collections, making it easier to manage large document sets and focus research on specific topics.
What are Document Groups?¶
Document Groups are: - Collections of related documents - Project-based organization tools - Research contexts for focused analysis - Shareable document sets - Dynamic collections that can be modified
Creating Groups¶
Via Web Interface¶
- Navigate to Documents tab
- Click "Create Group" button
- Enter group name and description
- Click "Create" to save
- Group appears in groups list
Via CLI¶
# Create a new group
./maestro-cli.sh create-group [username] "Group Name"
# With description
./maestro-cli.sh create-group [username] "Group Name" --description "Description"
Group Properties¶
Each group has: - Name: Descriptive title - Description: Purpose and contents - Document Count: Number of documents - Created Date: When established - Last Modified: Recent changes - Owner: Creator username
Managing Groups¶
Adding Documents to Groups¶
Single Document¶
- Select document in library
- Click "Add to Group" button
- Choose target group(s)
- Click "Add" to confirm
Batch Addition¶
- Select multiple documents
- Click "Add to Groups"
- Select one or more groups
- Apply to all selected
During Upload¶
- Start document upload
- Select "Add to Group" option
- Choose existing group
- Documents automatically added
Removing Documents¶
Individual Removal¶
- Open group view
- Select document to remove
- Click "Remove from Group"
- Document remains in library
Batch Removal¶
- Select multiple documents in group
- Click "Remove Selected"
- Confirm removal
- Documents stay in main library
Group Operations¶
Viewing Group Contents¶
Group view shows: - Document List: All documents in group - Group Statistics: Count, size, types - Quick Actions: Add, remove, export - Search Within Group: Focused search - Sort Options: Organize display
Editing Groups¶
Rename Group¶
- Click group name or edit icon
- Enter new name
- Press Enter or click Save
- Name updates everywhere
Update Description¶
- Click description area
- Edit text
- Save changes
- Description updates
Deleting Groups¶
Delete Empty Group¶
- Select empty group
- Click "Delete Group"
- Confirm deletion
- Group removed
Delete Group with Documents¶
- Select group with documents
- Click "Delete Group"
- Choose option:
- Keep documents in library
- Delete documents too
- Confirm action
Using Groups in Research¶
Research Context¶
Groups provide focused context: - Chat Interface: Select group for context - Missions: Limit research to group - Writing Mode: Use group as reference - Search Scope: Search within group only
Group Selection¶
In research interfaces: 1. Click "Select Group" dropdown 2. Choose relevant group 3. Research limited to group documents 4. Clear to use all documents
Benefits of Groups¶
- Focused Research: Relevant results only
- Faster Processing: Smaller search space
- Better Accuracy: Reduced noise
- Project Isolation: Keep research separate
Group Organization Strategies¶
By Project¶
Create groups for each project: - "Q1 2024 Research" - "Product Development" - "Competitor Analysis" - "Grant Proposal"
By Topic¶
Organize by subject matter: - "Machine Learning Papers" - "Climate Change Studies" - "Market Research" - "Technical Documentation"
By Source¶
Group by document origin: - "Internal Reports" - "Academic Papers" - "Industry Publications" - "Government Documents"
By Time Period¶
Temporal organization: - "2024 Documents" - "Historical Archive" - "Current Quarter" - "Weekly Updates"
Advanced Features¶
Group Hierarchies¶
While not directly supported, simulate with naming: - "Project/Subproject" - "Department - Team" - "Year/Month" - "Category::Subcategory"
Group Templates¶
Create standard groups: - "Research Template" - "Client Project Template" - "Literature Review Template" - Copy and customize
Shared Groups¶
Share groups with team: - Export group document list - Share group ID for access - Collaborative research - Permission management (admin only)
Group Analytics¶
Usage Statistics¶
View group metrics: - Access Frequency: How often used - Document Turnover: Addition/removal rate - Search Activity: Queries within group - Mission Usage: Research missions using group
Performance Metrics¶
- Average Document Size: In group
- Processing Status: Completion rate
- Search Performance: Query speed
- Storage Usage: Disk space used
Best Practices¶
Naming Conventions¶
- Descriptive Names: Clear purpose
- Consistent Format: Standard structure
- Date Prefixes: For temporal sorting
- Project Codes: For identification
- No Special Characters: Avoid issues
Group Maintenance¶
- Regular Review: Remove outdated documents
- Update Descriptions: Keep current
- Archive Old Groups: Don't delete, archive
- Merge Similar: Combine related groups
- Document Changes: Track modifications
Optimal Group Size¶
- Small (5-20 docs): Quick searches
- Medium (20-100 docs): Balanced performance
- Large (100-500 docs): Comprehensive research
- Very Large (500+ docs): Consider splitting
Import/Export¶
Exporting Groups¶
- Select group to export
- Click "Export" button
- Choose format:
- Document list (CSV)
- With metadata (JSON)
- Documents + list (ZIP)
- Download file
Importing Groups¶
- Prepare document list file
- Click "Import Group"
- Upload list file
- Map fields if needed
- Create group with documents
Troubleshooting¶
Documents Not in Group¶
- Verify addition completed
- Check document status
- Refresh group view
- Check permissions
Can't Create Group¶
- Check user permissions
- Verify unique name
- Check character limits
- Clear browser cache
Group Not Appearing¶
- Refresh page
- Check filters
- Verify creation success
- Check user access
Performance Issues¶
- Reduce group size
- Archive old documents
- Optimize searches
- Check indexing status
CLI Group Management¶
List Groups¶
Add Documents to Group¶
# Documents are added to groups during ingestion
./maestro-cli.sh ingest [username] /path/to/documents --group [group_id]
Group Management¶
Note: The CLI currently supports creating and listing groups. Document-to-group associations are managed during the ingestion process. For removing documents from groups or deleting groups, use the web interface or direct database operations.
Tips for Success¶
- Start Small: Create focused groups
- Document Purpose: Clear descriptions
- Regular Cleanup: Remove irrelevant documents
- Use in Research: Select groups for context
- Share Knowledge: Export useful groups
Next Steps¶
- Search Guide - Search within groups
- Research Overview - Using groups in research
- Mission Settings - Group-based missions
- Document Library - Managing documents