Voice-based chatbot using Ollama LLM with TDD
Project description
🎙️ Ollama Voice Q&A Bot
🎯 A voice-activated chatbot that answers only data science-related questions using Ollama (Mistral LLM).
Powered by Streamlit, Speech Recognition, and Test-Driven Development (TDD).
✨ Features
✅ Ask your question with your voice
✅ Responses only for data science-related queries
✅ Built-in Text-to-Speech replies
✅ Detects non-English and politely declines
✅ Locally hosted LLM via Ollama + Mistral
✅ Unit tested with TDD practices
🛠️ Tech Stack
| Category | Tools / Libraries Used |
|---|---|
| UI | Streamlit |
| Speech-to-Text | speech_recognition |
| Text-to-Speech | pyttsx3 |
| LLM | Ollama with mistral model |
| Language Detection | langdetect |
| Testing | Pytest + Mocking |
🧪 Test-Driven Development (TDD)
This project follows TDD principles:
- Write failing tests first
- Build functionality to pass them
- Refactor and improve
📁 Tests included:
test_llm.py: Ensures LLM answers are relevanttest_voice.py: Mocks voice input and checks resulttest_language.py: Validates correct language detection
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tdd_chatbot-0.1.0.tar.gz.
File metadata
- Download URL: tdd_chatbot-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56a746cde7879e27bcab61d56ca23d9d1e9ab1a89f8acdfae6ba95daf4f2a9d5
|
|
| MD5 |
3f1df808f9b5195400bc06e4da00c774
|
|
| BLAKE2b-256 |
85181b82da3a95dbb7ef89a897209c72df1eb3a90b217ec2b3ee36d004360cb7
|
File details
Details for the file tdd_chatbot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tdd_chatbot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a7e453d20ac79359044792225fb5dcc08db8a48ff25eda78b4f7ca8400047c5
|
|
| MD5 |
a4b13ea8227058e3c8e6cba75832a554
|
|
| BLAKE2b-256 |
b065d85d6ae0026b01823c8a28a27b163ee11ed16b7ebd318cf28a2746bcd270
|