Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add document segmentation feedback to UI #23

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

alexmeckes
Copy link
Contributor

Add document segmentation feedback to UI

This PR adds helpful feedback about document segmentation to the Streamlit UI:

  • Shows success message with number of sections extracted
  • Adds warnings for potential segmentation issues:
    • When only one section is found
    • When no sections are found
    • When only default sections are found
  • Adds error handling with user-friendly messages
  • Keeps the original JSON visualization style

These changes help users understand if their documents are being properly processed and provide guidance when issues occur.

@daavoo daavoo merged commit a4cb08c into mozilla-ai:main Feb 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants