At Jumble Journal, we are maintaining client-side encryption while implementing powerful AI features.
The Goal
Jumble is a daily journaling web-app built with client-side encryption which we aim to maintain. The goal is to be able to query your personal journal without server-side data ownership.
Jumble users will be able to “chat” with their own personal journal. The initial release will be a simple Q&A box. User can ask, for example, what are the three things I’ve been most anxious in the last year?
Reference of the data flow explained in this article:
Implementation
In order to provide contextually aware answers to a user question, the following steps are taken:
Step 1: Embed Journal Entries
To first step is to convert journal entries to vectors. To generate vectors, the plain text journal entry is sent over HTTPS to a Lambda function. The OpenAI Embeddings API is used to generate vector representations called embeddings. Once the vector embeddings are created, the journal…