The Irembo Auto-Agent is a chatbot application designed to provide information and assistance for Rwanda's e-government services through Irembo.
---
title: irembo-chatbot
app_file: irembo_chatbot/rwanda_rag_chat_langchain_all_articles.py
sdk: gradio
sdk_version: 5.9.1
python_version: 3.11
---
# Irembo Auto-Agent
The **Irembo Auto-Agent** is a chatbot application designed to provide information and assistance for Rwanda's e-government services through Irembo. It uses a Retrieval-Augmented Generation (RAG) approach to fetch relevant content and generate precise, concise responses.
- **Live Demo**: Access the chatbot here
- **Blog Posts**:
- The "why" behind the project
- The "how I built this" behind the project
---
## Project Structure
```
.
├── README.md
├── irembo_chatbot
│ └── rwanda_rag_chat_langchain_all_articles.py
├── poetry.lock
├── pyproject.toml
├── requirements.txt
└── scrape_irembo
└── scrape_irembo.py
```
---
## Features
- **Retrieval-Augmented Generation (RAG):** Combines retrieval of relevant content from a vector database with generative AI to answer user queries.
- **Integration with Irembo:** Focused on assisting users with Rwanda's e-government services.
- **Pinecone Vector Store:** Utilizes Pinecone for indexing and retrieving content.
- **LangChain Framework:** Employs LangChain for tool management and conversational AI capabilities.
- **Gradio Interface:** Provides an intuitive web-based chat interface.
- **Environment Variables:** Secure configuration through `.env` file.
---
## Setup Instructions
### Prerequisites
1. **Python**: Ensure Python 3.11 or higher is installed.
2. **Poetry**: Install Poetry for dependency management.
3. **Environment Variables**:
- Create a `.env` file in the project root with the following:
```env
PINECONE_API_KEY=...
PINECONE_INDEX_NAME=...
LANGCHAIN_API_KEY=...
LANGCHAIN_API_URL=...
LANGCHAIN_TRACER_PROJECT_NAME=...
OPENAI_API_KEY=...
```
### Installation
1. Clone the repository:
```bash
git clone
github.com
cd irembo-chatbot
```
2. Install dependencies:
```bash
poetry install
``` …