Try it out! https://aanpatel.tech/mediapipe-text-workshop/
This project demonstrates the use of Google's MediaPipe Solutions for generating Text Embeddings to categorize tasks in a smart todo list app.
We will create an app that allows users to create tasks and automatically categorizes them into matching categories using the MediaPipe framework. The universal sentence encoder model is used to generate text embeddings for the tasks, which are then compared using cosine similarity to determine the most relevant category.
: A JavaScript library for building user interfaces.
: A popular React UI framework for creating modern and responsive user interfaces.
: A framework developed by Google for building multimodal machine learning pipelines. This app utilizes the universal sentence encoder model provided out-of-the-box by Google with
MediaPipe Solution for Text Embedding
for task categorization based on cosine similarity.
- Task creation: Users can create new tasks with a title and description.
- Automatic categorization: The app uses the MediaPipe framework's universal sentence encoder model to categorize tasks based on their text embeddings.
- Cosine similarity: The app calculates the cosine similarity between task embeddings to determine the most relevant category.
- User interface: The frontend is built using React with Material UI components for a modern and intuitive user interface.
- Clone the repository.
- Install the required dependencies by doing
npm install
. - Start the development server using
npm run start
, the browser should automatically open the app athttp://localhost:3000/mediapipe-text-workshop
. - Start creating tasks and categories. Then click on the magic floating action button to automatically categorize the tasks.