Retrieval Augmented Generation Chatbot with Cohere API and HuggingFace 🤗
Introducing the Retrieval Augmented Generation Chatbot, a groundbreaking fusion of Cohere API and Hugging Face's technology, revolutionizing conversational AI by seamlessly blending factual accuracy with fluent dialogue. Leveraging Cohere API's robust knowledge retrieval and Hugging Face's generative capabilities, this innovative chatbot delivers contextually relevant and human-like conversations across domains like customer service and education, setting a new standard in interactive technology.
To get started, create a virtual environment and activate it:
virtualenv venv
source venv/bin/activate
Create a local environment file (.env
) and add your huggingface API key:
COHERE_API=your_cohere_api_key
Next, install the required dependencies using pip:
pip install -r requirements.txt
Now, you can run the application:
gradio app.py
This will start the application, allowing you to chat with the RAG model.
Once the application is up and running, you can interact with the chatbot through a web interface.
- Check out the chatbot on
- Explore more about the Dynamic-TinyBERT model here