Feature/evaluation - Dataset Interface#1893
Merged
RonShakutai merged 2 commits intoronshakutai/presidio-evaluation-repofrom Mar 8, 2026
Merged
Feature/evaluation - Dataset Interface#1893RonShakutai merged 2 commits intoronshakutai/presidio-evaluation-repofrom
RonShakutai merged 2 commits intoronshakutai/presidio-evaluation-repofrom
Conversation
…auto-accept functionality - Updated HumanReview component to include a "Skip Tagging" button that auto-accepts all entities from records. - Integrated session storage for setup configuration in HumanReview. - Modified Setup component to allow loading datasets from CSV/JSON files with a preview feature. - Added new types for UploadedDataset and SetupConfig to manage dataset metadata. - Implemented backend API for loading datasets, including CSV and JSON parsing. - Created sample medical records dataset for testing and demonstration purposes.
0054d54
into
ronshakutai/presidio-evaluation-repo
2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds real dataset loading capabilities to the evaluation flow, replacing the static mock-only UI with an interactive dataset interface. Users can load CSV/JSON files from local paths, preview records, and configure detection options based on dataset content. Aligns the entity schema with Presidio Analyzer's
RecognizerResultformat.What's Included
Dataset Loading (Backend)
backend/routers/upload.py—POST /api/datasets/loadaccepts a local file path, format (CSV/JSON), and column names. Parses the file, extracts entities if present, and stores records in memory.csv.DictReaderwith configurable text/entities columnsGET /api/datasets/{id}/preview?limit=5) and full records endpointDatasetLoadRequest(path, format, text_column, entities_column) andUploadedDataset(id, filename, format, record_count, has_entities, columns)data/sample_medical_records.csvwith 10 medical records containing pre-tagged entities (PERSON, DATE_TIME, EMAIL_ADDRESS, PHONE_NUMBER, US_SSN, CREDIT_CARD, etc.)Dataset Selector (Frontend — Setup Page)
Greyed-Out Sections
opacity-50,pointer-events-none) with "Coming soon" badgesEntity Schema Alignment
Entity.type→Entity.entity_typeacross the entire codebase (backend models, mock data, frontend types, all components) to match Presidio Analyzer'sRecognizerResultoutput formatdataset_entitiesfield toRecordmodel for entities loaded from datasetsConditional Flow
setupConfigfrom session storage and conditionally renders Presidio/LLM processing cards based on user selectionentity_typefield throughoutdatasetEntitiespropscreenshots