An open API service indexing awesome lists of open source software.

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!

Awesome Lists containing this project

README

          

Chatbot with RAG and LangChain

Watch the full tutorial on my YouTube Channel



Thomas Janssen Youtube

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
```