In the realm of mental health and personal growth, journaling has long been recognized as a powerful tool for self-reflection and emotional well-being. At Triskale, a small AI consulting company of four talented developers, we embarked on a mission to revolutionize the journaling experience by harnessing the potential of artificial intelligence. With the vision of Albert Carreras, one of our driven developers, we created Seren, an innovative AI-powered journaling app that offers users a unique and personalized approach to mental health support.
The Power of RAG and Prompt Fine-Tuning
At the core of Seren’s functionality lies the Retrieval-Augmented Generation (RAG) architecture. RAG is a cutting-edge AI technique that combines the strengths of retrieval-based systems and generative language models. By leveraging RAG, Seren can retrieve relevant information from a user’s personal knowledge base, built through their journaling entries, and generate contextually appropriate responses.
When a user journals or engages in a conversation with Seren, the app employs RAG to analyze the user’s text and extract key insights. It then retrieves relevant information from the user’s encrypted knowledge base, which includes their previous journal entries and other personal data. This retrieved information is seamlessly integrated with the generative capabilities of the AI model, allowing Seren to provide tailored and empathetic responses.
Our team at Triskale spent countless hours fine-tuning the prompts used by the AI model. By carefully crafting and iterating on these prompts, we were able to guide the AI’s responses to be more contextually relevant, empathetic, and aligned with the user’s unique needs and experiences.
Encryption and Privacy
Given the sensitive nature of mental health journaling, data privacy and security were paramount in the development of Seren. We implemented robust encryption mechanisms to ensure that users’ journal entries and personal information remain confidential. The data is encrypted both in transit and at rest, with only the isolated decryption service having access to the encryption keys.
This encryption system allows users to journal freely and openly, knowing that their innermost thoughts and feelings are protected. It creates a safe space for self-expression and enables Seren to provide personalized support while maintaining the highest standards of privacy.
Voice Processing with Whisper API
Recognizing that some users may prefer to express themselves verbally, we integrated the Whisper API into Seren. This powerful voice processing technology allows users to record their thoughts and feelings through speech, which is then transcribed and processed by the app.
By leveraging the Whisper API, Seren can accurately convert spoken words into text, enabling users to journal hands-free and capture their current emotions. This feature enhances the accessibility and versatility of the app, catering to different user preferences and needs.
A Companion That Knows You
One of the key elements that sets Seren apart is its ability to provide personalized responses based on the user’s unique context. Through consistent journaling and interaction with the app, users build a rich knowledge base about themselves. Seren leverages this knowledge base to offer tailored support and guidance.
When engaging in a conversation with Seren, the app draws upon the user’s journal entries and previous interactions to provide relevant and empathetic responses. It becomes a companion that truly understands the user’s experiences, struggles, and aspirations. This personalized approach fosters a deeper connection between the user and the app, enhancing the therapeutic value of the journaling experience.
The Development Journey
Building Seren was a year-long endeavor for our team at Triskale. As a small consulting company, we poured our expertise and passion into crafting an app that could make a meaningful difference in people’s lives.
Seren stands as a testament to the power of AI in revolutionizing mental health support. The journey of building Seren was driven by our shared vision of empowering individuals on their path to emotional well-being.
If you have ideas around implementing generative AI technology in your mobile application, Contact us.