Twitter author Profile picture
Apr 11 10 tweets 5 min read Twitter logo Read on Twitter
I built a ChatGPT @lex_fridman plugin that allows to chat with the collective wisdom contained across 499 of Lex's podcasts and videos... Here's how I built it 🧵

#ChatGPT #ArtificialIntelligence #nlproc #OPStack
Started by:
- downloading Lex MP3s via @YouTube API
- transcribing audio to text with @OpenAI's large Whisper model
- (optional) hosted the new "lex-transcripts" dataset on @huggingface datasets! Image
‼️ The code for the next few steps can be found here:
github.com/pinecone-io/ex…
Next, I used @LangChainAI to process the podcasts and break the text down into chunks of ~400 tokens Image
To make these podcast chunks searchable, I embedded them using @OpenAI's text-embedding-ada-002 model and stored them in the @pinecone vector DB Image
To integrate this with ChatGPT we need an API that ChatGPT can call. @OpenAI's pre-built "template" plugin was the perfect starting point. I forked it and made a few changes to create the ask-lex-plugin 🛠️
github.com/jamescalam/ask…
Next, I hosted the repo via @digitalocean — now everything was ready for ChatGPT...
Over on ChatGPT, I created the plugin via "Develop your own plugin". I installed it, and just like magic ✨ it was ready to use and giving incredibly detailed answers
If you want to develop your own, I created an in-depth video on how this was built here:
I can also share access to the plugin with a small number of people that have access to ChatGPT plugins — DM me if interested

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Twitter author

Twitter author Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(