Skip to content

About

Selective Memory offers AI data portability on your terms, not AI companies. You can edit your downloaded AI chatbot conversations before you upload them to a new service, picking and choosing which conversations you want to include, and redacting potentially sensitive data.

Topics

Resources

Contributing

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

52 Commits

Folders and files

Repository files navigation

Selective Memory: Chatbot Data Portability on Your Terms

License: MIT Python 3.9+ Status

Open-source proof of concept to enable users to upload their conversation data from major AI platforms, redact potentially sensitive information from conversations and choose which conversations they want to port from one system to another, and download a new copy of their conversation data for upload.

Helpful links:

  • Read the full article on data portability here!
  • Selective Memory can also run entirely in a web browser, so people can use it from a link without Python or a terminal. Files are still processed only on the user's own computer. Use the browser version of this tool with no set-up!

Quick Install

  1. Create a virtual environment (one-time setup):

    cd data-portability-app
    python3 -m venv .venv
    ./.venv/bin/pip install -r requirements.txt
  2. Start the development server:

    ./.venv/bin/python app.py
  3. Open in your browser: Navigate to http://127.0.0.1:5000

How to Use

This app runs entirely locally, your data never leaves your machine.

  1. Select Platform — Choose which platform service your conversation export is from (Claude/Anthropic or ChatGPT/OpenAI)
  2. Upload File — Drag and drop or browse for your conversations.json file

Tip

To try it out, use example conversations.json files in the sample data folder

Screenshot GIF of selecting and uploading a conversation JSON to edit

  1. Review Conversations — View all conversations in a searchable, sortable table with metadata (date, message count, word count, sensitivity tag)
    • Review conversations with possibly sensitive content which is highlighted by category (Red, Yellow, or Green tags)
    • Redact detected sensitive content
    • Redact any additional content that is deemed sensitive upon human review
    • Delete messages or whole turns
    • Delete conversations

Screenshot GIF of redacting possibly sensitive information in chat history and selecting chats to export

  1. Select for export — Select the conversations you want to keep and review.

Screenshot GIF of reviewing the selected chat history to export and downloading new conversation JSON

  1. Download — Save your filtered conversations.json file for upload to another platform.

How Sensitivity Labels Work

The sensitivity labels or sensitive information detection is entirely rule-based, with no model calls, using logic for normalized text, word-boundary regexes, and a few structural validators. The three sensitivity labels are:

  • 🔴 Red — regulated data (health/finance), high-risk PII, live secrets, malicious/exploit content, legal exposure, and "what do you know about me" profile-audit questions
  • 🟡 Yellow — quasi-identifying or commercially sensitive: geo/proximity, trackable indicators, memory-write requests, business ventures, interpersonal comms, indirect identifiers, corporate IP, creative/copyrighted material
  • 🟢 Green — nothing matched

AI Disclosure

The code handling conversation data parsing was written by members of CDT's AI Governance Lab. To make the parsing code operational for users at scale, we developed an application, Selective Memory, with the assistance of Claude Code. Claude Code was used to develop the application's front and backend functionality.

Contributors

Contributors to Selective Memory

About

Selective Memory offers AI data portability on your terms, not AI companies. You can edit your downloaded AI chatbot conversations before you upload them to a new service, picking and choosing which conversations you want to include, and redacting potentially sensitive data.

Topics

Resources

Contributing

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages