Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.93 KB

File metadata and controls

57 lines (38 loc) · 1.93 KB

Context Tracker

alt text

|| Blog Post || Demo Video ||

This repository contains a context tracking system that captures screen activity, analyzes it using LLM providers, and stores the context data for further analysis. The system is designed to help users track their activities and generate summaries of their sessions. Checkout the Raycast plugin here.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/Pythonista7/context-tracker-backend
    cd context-tracker-backend
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Start the server:

    python server.py
  2. Use the provided API endpoints to create contexts, start sessions, capture screen activity, and generate summaries.

Configuraions

To configure the context tracking system, you need to set up the following environment variables:

Environment Variables

  • OPENAI_API_KEY: Your OpenAI API key for accessing OpenAI's LLM services.
  • ANTHROPIC_API_KEY: Your Anthropic API key for accessing Anthropic's LLM services.
  • DATABASE_URL: The URL for your database where context data will be stored.
  • FLASK_ENV: The environment in which the Flask server is running (development or production).

Modifying constants.py

You may need to modify constants.py to set paths and other constants as needed for your specific setup.