
LLM Chatbot using Groq & LangChain
This project is a simple chatbot built using
Architecture
+--------------------+
| User |
| (Web Browser) |
+---------+----------+
|
v
+--------------------+
| Gradio UI Layer |
| (gradio_app.py) |
| - Chat Interface |
| - Input/Output |
+---------+----------+
|
v
+---------------------------+
| Chatbot Controller |
| (chatbot.py) |
| LangChain Integration |
| - Prompt Handling |
| - Response Processing |
+------------+--------------+
|
v
+----------------------------+
| Groq Client |
| (groq_client.py) |
| - API Communication |
| - Model Configuration |
+------------+---------------+
|
v
+-----------------------------+
| Groq LLM API |
| openai/gpt-oss-20b |
| High-speed inference |
+-------------+---------------+
|
v
+-----------------------------+
| Response |
| Generated by the Model |
+-----------------------------+
|
v
Back to Gradio UI
This project offers a clean, easy-to-use code structure with secure environment variable support for API keys. It includes a simple, browser-based interface built with Gradio. To get started, clone the repository, install the dependencies with pip install -r requirements.txt, and create a .env file with your API key (GROQ_API_KEY=your_api_key). Run python main.py to launch the program and access the interactive interface, allowing you to use the application quickly and effortlessly.
GitHub : https://github.com/RamyaNandhan/llm-chatbot_app
Conversational bot - Chatbot
š Features:
A chatbot capable of understanding and responding intelligently to user inputs