Home / Companies / Deepgram / Blog / Post Details
Content Deep Dive

Tutorial: Building an end-to-end LLM Chatbot

Blog post from Deepgram

Post Details
Company
Date Published
Author
Zian (Andy) Wang
Word Count
3,780
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

A tutorial explains how to build a locally run, voice-enabled chatbot using Ollama for LLM inference, Streamlit for a browser-based chat interface, and Deepgram for speech-to-text and text-to-speech services. It covers installing the required tools, selecting a GGUF-format open-source model such as Dolphin Mistral, assessing hardware memory and performance requirements, and configuring Ollama through a Modelfile containing the model path, prompt template, and optional system prompt. The chatbot preserves conversation history in Streamlit session state and sends it to Ollama’s local streaming API to generate multi-turn responses. Audio support is added through a recording widget and Deepgram transcription, while generated LLM replies can be converted into WAV audio using Deepgram voices and played in the interface. The tutorial also describes a bonus Apple Shortcuts modification that replaces an OpenAI-based Siri shortcut with calls to a local Ollama API, allowing Siri to relay responses from a locally hosted model.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 21 3,753 419 156 +40%
Real-time 6 2,597 714 225 -11%
Local AI 1 13 10 8 -41%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.