In the U.S., private health insurance can cost over $500/month — and in countries like Spain, crowded public hospitals often lead to long waits and brief, impersonal consultations.
Whether you're navigating complex health systems or just looking for trustworthy guidance, access to clear, emotionally intelligent health information has never been more critical.
That's where ALMA comes in.
ALMA is a multimodal, multilingual AI assistant designed to deliver warm, emotionally intelligent answers to health and wellness questions. It analyzes and retrieves relevant content from YouTube videos, allowing users to ask questions and receive precise answers — along with recommended video segments — in both English and Spanish.
ALMA uses health-related video content from trusted experts, including:
- Andrew Huberman
- Dr. Rangan Chatterjee
- Dr. Vonda Wright
- Dr. Laurie Santos (via Mel Robbins Podcast)
These sources provide diverse, research-based perspectives on physical, mental, and emotional well-being.
- Multilingual: Supports English and Spanish
- Multimodal Input: Accepts both voice and text input
- Voice Output: Speaks responses using Microsoft Edge TTS
- Video Integration: Suggests helpful YouTube clips based on similarity
- Health Tools: Built-in BMI, TDEE, and Macronutrient calculators
- Short-Term Memory: Remembers last 3 user exchanges for natural flow
- Powered by GPT-4 and OpenAI embeddings
- Retrieval-Augmented Generation (RAG) pipeline with Pinecone
- Fully integrated with LangChain and LangSmith for evaluation and tracing
- Extract YouTube Transcripts using
youtube_transcript_api - Chunk and Tag transcript content for semantic retrieval
- Manually Curate Video Segments with metadata and timestamps
- Embed all data using OpenAI embeddings
- Store in Pinecone vector databases:
alma-index(transcripts) &alma-video-index(segments)
- Uses a Zero-Shot ReAct Agent
- Retrieves context from vector DB
- Builds prompt with short-term memory (last 3 turns)
- Applies emotionally aware prompt templates (EN/ES)
- GPT-4 generates final response
alma_calculatortool handles BMI, TDEE, and macro calculations- Agent chooses whether to use tool or GPT-4 directly
- Responses are wrapped in ALMA’s caring tone
- Input: Google Speech Recognition via
speech_recognition - Output: Edge TTS with natural voice
- Option to choose between text or voice at runtime
- Tracks all runs and responses
- Logs:
- Input question
- Tool selection
- Retrieved documents
- GPT-4 prompt & final output
- Helps trace bugs, misfires, and optimize prompt performance
- Python
- LangChain
- OpenAI GPT-4
- Pinecone
- Streamlit / CLI Interface
- Edge TTS
- Google STT
- LangSmith
Clone this repo:
git clone https://github.com/your-username/alma-chatbot.git cd alma-chatbot
pip install -r requirements.txt
Add a .env file:
OPENAI_API_KEY=your-key
PINECONE_API_KEY=your-key
FFMPEG_PATH=/your/path/to/ffmpeg
Run the app:
streamlit run ALMA_app.py
You can try the public version here:
This version supports text input only, due to browser and platform limitations on audio recording in Streamlit Cloud.

