Skip to content

About

RAG chatbot using opensource LLM

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

rag_chat_opensource_llm

Experimented with Retrieval Augmented Generation based on given data

An AI chatbot featuring conversational memory, designed to enable users to discuss their CSV, PDF, TXT data, Website page and YTB videos in a more intuitive manner. 🚀

For better understanding, see medium article 🖖 : Build a chat-bot over your CSV data

Running Locally 💻

Follow these steps to set up and run the service locally :

Prerequisites

Installation

Clone the repository :

git clone https://github.com/ly2xxx/rag_chat_opensource_llm

Navigate to the project directory :

cd rag_chat_opensource_llm

Install dependencies and create a virtual environment using uv :

uv sync

Activate the virtual environment :

.\.venv\Scripts\activate

Setup gpt-2 tokenizer manually for langchain ConversationalRetrievalChain : Copy models\models--gpt2 to C:\Users\[windows-username]\.cache\huggingface\hub\models--gpt2 gpt2 manual copy screenshot

Launch the chat service locally :

streamlit run streamlit_app.py

That's it! The AI chatbot is now up and running locally. 🤗

website demo screenshot

Other resources

auto-upgrade imports - https://python.langchain.com/v0.2/docs/versions/v0_2/

About

RAG chatbot using opensource LLM

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages