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

Creating a Recipe Recommendation Chatbot with Ollama and Twilio

Blog post from Twilio

Post Details
Company
Date Published
Author
Carlos Mucuho
Word Count
3,698
Language
English
Hacker News Points
-
Summary

You can create a WhatsApp recipe recommendation chatbot that uses Retrieval-Augmented Generation (RAG) to provide recipe suggestions and computer vision to process images containing cooking ingredients. The bot will be built using the Twilio Programmable Messaging API for handling WhatsApp messages, Ollama, an open-source tool for running large language models locally, and Chroma, a vector database that stores and retrieves embeddings. The chatbot will understand recipe requests, analyze ingredient photos, and engage in natural conversations about cooking. It uses the Nomic embed text model to generate embeddings for recipes, the Mistral NeMo model for generating contextual responses, the LLaVA model for processing ingredient images, and RAG to improve accuracy and ground the model's responses in factual data. The chatbot can be tested with sample queries and images, and it will respond with recipe recommendations and detailed image descriptions containing identified ingredients.