https://github.com/thomasjanssen-tech/chatbot-with-rag-and-langchain
Build a Chatbot which uses Retrieval Augmented Generation (RAG) to answer based on your own data!
https://github.com/thomasjanssen-tech/chatbot-with-rag-and-langchain
chatbot langchain rag retrieval-augmented-generation
Last synced: 8 months ago
JSON representation
Build a Chatbot which uses Retrieval Augmented Generation (RAG) to answer based on your own data!
- Host: GitHub
- URL: https://github.com/thomasjanssen-tech/chatbot-with-rag-and-langchain
- Owner: ThomasJanssen-tech
- License: mit
- Created: 2025-04-27T18:09:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-27T18:20:02.000Z (about 1 year ago)
- Last Synced: 2025-09-07T06:35:07.086Z (10 months ago)
- Topics: chatbot, langchain, rag, retrieval-augmented-generation
- Language: Python
- Homepage: https://thomasjanssen.tech/
- Size: 511 KB
- Stars: 5
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
Chatbot with RAG and LangChain
Watch the full tutorial on my YouTube Channel
Prerequisites
- Python 3.11+
Installation
1. Clone the repository:
```
git clone https://github.com/ThomasJanssen-tech/Chatbot-with-RAG-and-LangChain.git
cd Chatbot-with-RAG-and-LangChain
```
2. Create a virtual environment
```
python -m venv venv
```
3. Activate the virtual environment
```
venv\Scripts\Activate
(or on Mac): source venv/bin/activate
```
4. Install libraries
```
pip install -r requirements.txt
```
5. Add OpenAI API Key
Rename the .env.example file to .env
Add your OpenAI API Key
Executing the scripts
- Open a terminal in VS Code
- Execute the following command:
```
python ingest_database.py
python chatbot.py
```