This project is a React-based interactive chatbot connected to the FastAPI backend using the Retrieval-Augmented Generation (RAG) approach. This chatbot is designed to answer questions related to health center services based on an internal knowledge base.
- React-based chat user interface
- AI answering using LLM (Groq + LLaMA 3.1)
- Chat is saved and can be retrieved based on
session_id
- Supports Markdown format in answers
- Bot typing indicator
- Conversation history storage
Frontend:
- React + Tailwind CSS
uuid
for dynamic session IDreact-markdown
for render Markdown
Backend:
- Python
- Beutifulshop
- LangChain
- Postgree SQL
- Groq Cloud
- Llama3.1
git clone https://github.com/yudifaturohman/chatbot-ai-puskesmas-client.git
cd chatbot-ai-puskesmas-client
npm install
npm run dev or npm start
{
"query": "Apa layanan yang tersedia di Puskesmas A?",
"session_id": "abcd-1234"
}
[
{
"id": 1,
"message": {
"type": "human",
"data": {
"content": "Apa itu Puskesmas?"
}
}
},
{
"id": 2,
"message": {
"type": "ai",
"data": {
"content": "**Puskesmas** adalah..."
}
}
}
]