Add ChatGPT JSON cleanup tool to reduce metadata bloat#45
Open
chefplay wants to merge 1 commit into
Open
Conversation
This commit adds a Python script and documentation for cleaning up ChatGPT export JSON files. The tool addresses the common "metadata bloat" problem where JSON exports can be 300MB+ but contain mostly structural metadata rather than actual conversation content. Features: - Strips metadata from ChatGPT JSON exports (timestamps, IDs, node relationships) - Reduces file size by 85-95% (typically 300MB → 15-20MB) - Extracts pure conversation text in human-readable format - Preserves conversation titles, dates, and message order - No external dependencies (pure Python standard library) Files added: - clean_my_chat.py: Main cleanup script - CHAT_CLEANUP_GUIDE.md: Comprehensive usage documentation The cleaned output can be used with: - Google NotebookLM for Q&A - VS Code for keyword search - GPT4All for private local AI analysis
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.
This commit adds a Python script and documentation for cleaning up ChatGPT export JSON files. The tool addresses the common "metadata bloat" problem where JSON exports can be 300MB+ but contain mostly structural metadata rather than actual conversation content.
Features:
Files added:
The cleaned output can be used with: