Learn how you can develop an application to search emails using RAG
In this article, I will show you how you can develop the MailDiscoverer application to search Gmail emails using RAG. First, I will show you how to set up the authentication pipeline to access user’s emails (if consent is given). The emails are then embedded using an OpenAI text embedder and stored in a Pinecone vector database. This allows a user to ask questions regarding the emails, and the RAG system will retrieve the most relevant emails and provide an answer to the question.
The application developed in this article can be found on Streamlit. My GitHub repository for this code is also available.
The video below showcases how the application works. After logging in and uploading your emails, you can ask a question about them, and the application will provide an answer and showcase the most relevant emails used to provide the answer.