Memopin is an AI-enhanced memory recall tool designed to address the challenges of fragmented memories and forgetfulness in the digital age. People often struggle to recall meaningful moments as photos, conversations, and videos are scattered across various platforms, making retrieval difficult. For individuals with Alzheimer's and other memory impairments, this struggle becomes even more pronounced, leading to confusion, disorientation, and emotional distress.
Memopin solves these challenges by providing a unified platform to store and retrieve key moments. Using advanced AI technologies like Retrieval-Augmented Generation (RAG), Large Language Models (LLMs), and Natural Language Processing (NLP), it helps users retrieve detailed, context-rich memories from multimedia content like audio, video, and photos. Memopin's video analysis adds an extra layer of depth to memory recall, ensuring a comprehensive understanding of multimedia content.
The solution organizes memories into a searchable, context-aware database, making it easy to reflect on past experiences and improve cognitive health, emotional well-being, and memory management.
- React: Frontend framework for building the user interface and managing user interactions.
- ReactDOM: Renders the React components in the browser.
- NLP (Natural Language Processing): Analyzes speech and text within recorded content to enhance memory context and improve relevance.
- Retrieval-Augmented Generation (RAG) AI: Combines memory storage and querying to generate contextually accurate responses to user queries.
- Large Language Models (LLMs): Understands and contextualizes user queries, offering detailed and relevant memories reflecting personal experiences.
- Vector Databases: Efficiently stores and retrieves multimedia data, ensuring structured organization for quick access.
Follow these steps to set up the ai-backend project locally:
-
Ensure to go to the folder:
- First, ensure that the ai-app project is set up . And go to the same folder where we cloned ai-app.
-
Open a New Terminal for ai-backend:
- Open another terminal or command prompt for the ai-backend setup and follow these steps.
-
Initialize Git:
- Inside your terminal, initialize a Git repository:
git init
- Inside your terminal, initialize a Git repository:
-
Clone the AI Backend Repository:
- Clone the ai-backend repository to your local machine using the URL:
git clone <this repository url>
- Clone the ai-backend repository to your local machine using the URL:
-
Navigate to the ai-backend Directory:
- Change to the ai-backend directory:
cd ai-backend
- Change to the ai-backend directory:
-
Create a Virtual Environment:
- Create a new virtual environment using conda (Python 3.8):
conda create -n venv python=3.8
- Create a new virtual environment using conda (Python 3.8):
-
Activate the Virtual Environment:
- Activate the newly created virtual environment:
conda activate venv
- Activate the newly created virtual environment:
-
Install Dependencies:
- Install the required Python dependencies from the
requirements.txt
file:pip install -r requirements.txt
- Install the required Python dependencies from the
-
Create a
.env
File:- Create a
.env
file in the root directory of ai-backend with the following keys:LANGCHAIN_API_KEY=<your langchain api key> GROQ_API_KEY=<your groq api key> LANGCHAIN_TRACING_V2="true"
- Create a
-
Run the Application:
- Start the AI backend service by running:
python app.py
- Start the AI backend service by running:
-
Open the Frontend Application:
- Go to the ai-app directory and run it using:
npm run dev
- Open your browser and go to
http://localhost:5173/
. You should now be able to process audio files either for storing or retrieving memories.
- Go to the ai-app directory and run it using:
Once you have the ai-backend set up, make sure you have ai-app set up. There are two repositories you should clone and set up:
The user interface of the Memopin project, where users can interact with the system.
- Repository URL: ai-app
The Node Backend handles the MongoDB-related functionality, including user management, authentication, and storing login/signup related data.
- Repository URL: node-backend