/MemSearch

MemSearch is an open source project that aims to give your MacOS perfect memory, allowing you to search in the past, but also autopilot your future!

Primary LanguagePython

UtopiaOS MemSearch

UtopiaOS MemSearch enhances your MacOS experience by providing a powerful capability to search through your own interaction history. It uses multidimensional tracking methods to learn and analyze your screen, allowing you to retrieve information seamlessly from past activities. We also building an action recommendation engine on top of your MacOS to help you complete thing faster.

Installation

To install the necessary dependencies for UtopiaOS MemSearch, run the following command:

  1. Clone the repository
  2. Create a virtual environment:
python -m venv MemSearch
  1. Activate the virtual environment (MacOS)
source MemSearch/bin/activate
  1. Install the required packages:
pip install -r requirements.txt

Ensure you have Python installed on your system to use pip. It is also recommended to use a virtual environment to manage the dependencies.

Usage

  • Note: Please make sure your OpenAI Key is stored in your environment variables. To start using UtopiaOS MemSearch, execute the included shell script:
chmod +x track.sh
./track.sh

This script initializes the system and starts all necessary services for tracking and searching your OS interaction history.

By default, we will search through the entire screen. If you want to search through active windows. To start the MemSearch Python app, simply type:

chmod +x search.sh
./search.sh

To do analysis on your daily computer usage, run:

chmod +x analyze.sh
./analyze.sh

To search, just type in any keyword: General Search

To do app search, please type in name of the app, follow by ": ", and then keyword. e.g. "Arc: No country for old man". App Search

To get suggestions to list of action you could do, command+shift on any window with "flow.py" or "vision_flow.py" under the "recommend" folder. The former has a simple chat interface, the latter Suggest

Components

UtopiaOS MemSearch consists of several Python scripts, each serving a unique role in the system:

  1. screen_tracker.py: This script records your screen activity and performs OCR (Optical Character Recognition) to extract key textual information from the screen.

  2. system_tracker.py: Tracks all open applications, marking each as active or dormant, thus providing a comprehensive view of your system's application usage over time.

  3. search_app.py: A Python application with a simple GUI that allows you to search through your MacOS interaction history.

  4. daily_summary.py: generate an AI report of user's usage today. User could proceed to ask questions about his daily routines.

  5. vision_flow.py and flow.py: understands your intent and recommend actions for you to take!