Midjourney Prompt: a robot as a fortune teller gazing into a crystal ball, dreamlike diffuse ethereal lighting, golden hour, warm glow, watercolor

Can GPT-3 Explain My Past and Tell My Future?

I loaded journal entries from the past 10 years into GPT-3—and started asking it questions

275 9

Sponsor Every

Want to reach AI early-adopters? Every is the premier place for 80,000+ founders, operators, and investors to read about business, AI, and personal development.

We're currently accepting sponsors for Q3! If you're interested in reaching our audience, learn more:

What do you want to know about yourself? asks the bot.

The bot is built with GPT-3, and has access to hundreds of my old journal entries from the last 10 years that it can use to answer my questions. It took me a few hours of programming, and I’m using it for the first time. I built it to analyze my past so, hopefully, I could better understand my future. “What’s past is prologue,” wrote Shakespeare, after all.

I start to type a question into my laptop. “When in his life has the author been the happiest?” GPT-3 doesn’t know my name yet, so I have to refer to myself as the author. “Please be specific about moments and situations. Identify what caused the happiness. Be truthful, don't make anything up. If you can't find a specific moment of happiness, don't summarize. Find moments that are surprising.” 

I hit enter, and GPT-3 begins its work, finding the entries that are most relevant to my question and summarizing them to create an answer.

I watch its progress scroll past me with greedy focus. I feel like I just squeezed my soul into the coin slot of a self-designed slot machine. Now, I’m waiting to see if it will pay out. 

Finally, a response comes back:

“The author felt the most happiness when he was walking on the beach in Koh Phangan, Thailand. He started out feeling somber, but as he walked he started to think about ideas for a novel about startups written in a style similar to Alain de Botton. This inspired him and he felt a lot lighter and happier.” 

It continues:

“He also felt happiness when he was with Julia, reading, writing, building/creating things, having good conversations with people, watching football, reading Jonathan Gold, feeling in command of himself, going into an office and having people who look to him to set direction, and during/immediately after public speaking that went well.”

Jackpot. 

. . . .

I’ve been experimenting a lot with GPT-3 recently. I built a chatbot based on the Huberman Lab podcast. I built a custom journal bot to help me unpack issues in my life. 

But this is by far my most personal experiment—and, in my opinion, one of the most valuable. 

I’ll take you through how I came up with the idea, how I built it, what the results are, and what I think the future holds for these kinds of tools.

Summarizing the present

I found out innocently enough that GPT-3 is good at summarizing.

I was writing an article for Every and having trouble finding the main thread, so I pasted what I had so far into ChatGPT and asked it to summarize my key points. Usually, I’d ask someone at Every to help me with this, but no one was online. So I figured, why not ask GPT-3 to do it? 

I hit enter and got the results—they were great. I saw the article I was writing in a totally new way, and I was able to finish it quickly and easily.

My curiosity was piqued. What else might GPT-3 be good at summarizing? Maybe it would work for more than just my half-finished essays. 

In my next therapy session I had an idea. I asked my therapist if I could record our session and feed the transcripts into GPT-3. It’s been a tough few weeks, and I wanted to see if it could help me look at what I was dealing with from a new perspective. 

He was intrigued, so we laid a few ground rules about what I would do with the recording and what I would share. Then we dove in. (Note: if you are in therapy, do not do this without explicitly discussing it with your therapist.) Afterwards I threw a section of the transcript into ChatGPT and asked it to summarize. 

The results were stunning.

“From this session, it appears the client is experiencing a lot of stress due to a variety of life events, such as [REDACTED]. The client is feeling overwhelmed, exhausted, and scared, and is struggling to manage conflicting feelings of wanting to escape the situation and wanting to remain brave and committed to working through it. On a deeper level, the client is struggling with feelings of inadequacy and fear of disappointing others, and a fear of conflict.”

It correctly identified each of the things that I was struggling with, and then, in its own words, it expressed how I’d been feeling—but far more precisely than I had been able to do on my own. In some strange way, it felt like the AI knew me better than I knew myself.

When someone, or something, puts their finger on exactly what you’re feeling, something clicks, and it creates an instant sense of relief. That’s exactly what happened when I read the summary. I had never directly used the word “inadequacy” to explain how I was feeling in that situation, but I was clearly feeling it. Now, when that feeling comes up, I can recognize it, label it, and work with it in a way that I wasn’t able to before. 

The experience left me even more curious to experiment.

What other kinds of insights were hiding in plain sight? What would happen if I had recorded more than that one therapy session? I wanted to try giving it 100x the amount of material to work with. 

I had an idea where to look.

Explaining the past

A journal is a way to catch pieces of yourself as they float through the present.

I’ve been patiently catching those pieces for 10 years, in journals of every type. I’ve marked up markdown files and back-linked my morning pages in Roam. I’ve scrawled in yellow legal pads, Moleskines, and Midoris. (I even built a GPT-3 journal.)

I’ve always wondered why I do journaling. It helps me think through things in the moment, but I’ve always felt like I would use all of these entries for something more important. Maybe a book—a memoir. Now, it occurred to me that I should feed my journal into a machine.

It is, perhaps, the most delightfully narcissistic use of AI ever. But maybe it will also be helpful. 

There’s only one problem.

Solving GPT-3’s poor memory

GPT-3 might be good at summarizing text, but, at least for now, it has a poor memory. You can only feed it a few pages of text at a time to get summaries back. If you try to, say, feed it an entire journal, it'll error out.

I needed an alternative solution. 

Luckily, I discovered a new library called GPTIndex that makes this easy with just a few lines of code. I spent a few hours on it (and some time on the phone with GPTIndex’s creator, Jerry Liu) and eventually arrived at a setup that works like this:

  1. It breaks all of my entries into small chunks.
  2. It stores them in a form that makes them easily searchable.
  3. When I ask a question, it retrieves the most relevant chunks.
  4. It summarizes the chunks, and then synthesizes the summaries repeatedly until it gets a final answer.
  5. It displays the answer.

Here’s more detail on how it works.

Preparing the journal entries

The first thing I needed to do was prepare the journal entries. I compiled them into a folder and—using GPTIndex’s GPTSimpleVectorIndex, a data structure—wrote a short script that could break them into chunks and store them in a way that made them easily searchable.

The code looks like this:

Create a free account to continue reading

The Only Subscription
You Need to Stay at the
Edge of AI

The essential toolkit for those shaping the future

"This might be the best value you
can get from an AI subscription."

- Jay S.

Mail Every Content
AI&I Podcast AI&I Podcast
Monologue Monologue
Cora Cora
Sparkle Sparkle
Spiral Spiral

Join 100,000+ leaders, builders, and innovators

Community members

Already have an account? Sign in

What is included in a subscription?

Daily insights from AI pioneers + early access to powerful AI tools

Pencil Front-row access to the future of AI
Check In-depth reviews of new models on release day
Check Playbooks and guides for putting AI to work
Check Prompts and use cases for builders

Comments

You need to login before you can comment.
Don't have an account? Sign up!
@david810 almost 3 years ago

Love this! We're thinking about a lot of the same things, Dan.

I use a headless keyboard "Go Note Go" to take notes -- as I drift off to sleep, at my desk at work, while I'm driving (via audio), camping, even sometimes while showering! Been in the sleep-typing game for over 8 years now (wow!)

Recently I added an AI assistant to Go Note Go. So far it only gets access to the current session of notes, not my full history of notes like you did. But this limitation was apparent right from the start! So, like you, I also have been experimenting with GPT-Index. It's not part of Go Note Go yet, but definitely a possibility.

For the curious, more on Go Note Go here: https://davidbieber.com/snippets/2023-01-16-go-note-go-features/

LOL. Are you shilling for bot-therapy start up? Nice one.

Dan Shipper almost 3 years ago

@kiers77 no, what leads you to think that? I don't think this is even close to a replacement for therapy

Thanks for this. I have an idea in mind to create a GPT-3 policy advisor for my organizaiton. It would be given written guidance such as standard operating procedures and company policy as background, then be made available to answer specific questions from line level producers and managers. Until now we've relied on a person to serve as a policy expert -- a human who studies the guidance and offers advice on how it applies in a given situation. I think GPT-3 could be used to make some level of counsel available anywhere, anytime.

Dan Shipper almost 3 years ago

@cvadnais I think this is a great idea!! Very possible today with the current technology. Keep us posted if you build it!

Alex Adamov almost 3 years ago

I like your experiments with GPT 😄 I think this active type of journaling can be useful and quicker to use than traditional journaling.

For more large scale searching of documents with LLM including GPT3, check out Deepset and their Haystack library.

Ps: I noticed you use “Please” in GPT prompts. I did that too but over time it can cost a few tokens but is not needed 😃

Hey Dan, thank you for sharing. Really enjoyed this piece and one that quoted Annie Dillard awhile ago :) On the deepest unmet need, do you think gpt can connect diary entries shared anonymously? Curious if it could do match making for those with similar vibes/aspirations/questions in life

Interesting.

I wonder the effects of using online journaling vs. paper/physical journaling. There must be different effects on the brain - just like its different for learning/note taking.

@gonzantos over 2 years ago

Thanks Dan. I got to this article googling how to chat with my notes in Evernote. I was moved when I saw the first mention of KPG, the island where I have lived for 5 years.
As a web dev I'm happy to see in your progress how this chat will posible soon, but especially as someone who likes journalism and self-reflection, I liked your insights. There are apps that do something similar, but the responses are very poor for now and there is no control over the agent: https://asknotion.app