A

A personalised AI tutor with < 1s voice responses

Hacker News

A personalised AI tutor with < 1s voice responses

TLDR: We created a personalised Andrej Karpathy tutor that can response to questions about his Youtube videos in sub 1 second responses (voice-to-voice). We do this using a voice enabled RAG agent. See later in the post for demo link, Github Repo and blog write up. A few weeks ago we released the worlds fastest voice bot, achieving 500ms voice-to-voice response times, including a 200ms delay waiting for a user to stop speaking. After reaching the front page of HN, we thought about how we could take this a step further based on feedback we were getting from the community. Many companies were looking for a way to implement function calling and RAG with voice interfaces while retaining a low enough latency. We couldn’t find many resources about how to do this online that: 1. Allowed us to achieve sub-second voice-to-voice latency 2. Was more flexible than existing solutions. Vapi, Retell, [Bland.ai]( http://Bland.ai ) are too opinionated plus since they just orchestrate API’s which incur network latency at every step. See requirement above 3. The unit economics actually work at scale. So we decided to create a implementation of our own. Process: As we mentioned in our previous release, if you want to achieve response times this low you need to make everything as local as possible. So below was our setup - Local STT: Deepgram model - Local Embedding model: Nomic v1.5 - Local VectorDB: Turso - Local LLM: Llama 3B - Local TTS: Deepgram model From our previous example, the only new components where: - Local Embedding model: We chose Nomic Embed text v1.5 model that gave a processing time of roughly ~200ms - Turso offers local embedded replicas combined with edgeDB’s which meant we were able to achieve 0.01 second read times. Pinecone also gave us good times of 0.043 seconds. The above changes led us to achieve sub 1 second voice-to-voice response times Application: With Andrej Karpathy’s announcement around [Eureka Labs]( https://eurekalabs.ai/ ), a new AI+Education company we thought we would create our very own personalised Andrej tutor. Listen to anyone of his Youtube lectures, as soon as your start specking, the video will pause and he will reply. Once your question has been answered you can then tell him to continue with the lecture and the video will automatically start playing. Demo: https://educationbot.cerebrium.ai/ Blog: https://www.cerebrium.ai/blog/creating-a-realtime-rag-voice-... Github Repo: https://github.com/CerebriumAI/examples/tree/master/19-voice... For demo purposes: - We used OpenAI for GPT-4-mini and embeddings (its cheaper to run on a CPU than GPU’s when running demos at scale. These changes add about ~1 second to the response time - We used Eleven labs to clone his voice to make replies sound more realistic. This adds about 300ms to the response time. The improvements that can be made which we would like the community to contribute to are: - Embed the video screens as well that when you ask certain questions it can show you the relevant lecture slide for the same chuck that it got context from to answer. - Insert the timestamps in the vectorDB timestamps so that if a question will be answered later in the lecture he can let you know This unlocks so many use cases in education, employee training, sales etc that it would be great to see what the community builds!

Share card

Actual performance

72points
24comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, model, user · Missing: mac, agents, macos
97%97% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: created, including · Missing: supports, reddit linkedin, podcasting
81%81% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRFits verified-revenue profile · Strong signals: personal, video, way · Missing: mobile apps, ios, entrepreneurs
58%58% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: exist, existing, llama · Missing: https docs, excited, just released
55%55% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: plus, interface, soon · Missing: platform, intuitive, reviews
40%40% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
19%19% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

My
My AI Tutor now supports voice mode26%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My AI Tutor now supports voice mode

Hacker News2
Qu
Qurania, Your Friendly AI Tutor13%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Qurania, Your Friendly AI Tutor

Hacker News1
AITA
AITA44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Your Personal AI Tutor

Product Hunt
So
Socratix – an AI tutor for proving mastery, not memorizing42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Socratix – an AI tutor for proving mastery, not memorizing

Hacker News1
Skilly
Skilly7%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Voice-first AI tutor that watches your screen

Indie Hackers
Vidyaarthi.ai
Vidyaarthi.ai38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI tutor that explains anything.

Product Hunt+8
Be
Become fluent in a language by practicing with an AI Tutor45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Become fluent in a language by practicing with an AI Tutor

Hacker News4
Retenio
Retenio46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI Tutor for Active Learning

Indie Hackers1ai
I
I made an AI Tutor that teaches through conversation31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made an AI Tutor that teaches through conversation

Hacker News2
Socratopia
Socratopia25%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI Socratic tutor. Aristotle for everyone.

Indie Hackerscommitment-full-time