Skip to content

LLM_LangChain_ChatBot is a contextual document retrieval chatbot that leverages LangChain to process user queries and generate accurate responses based on the content of retrieved documents. Ideal for applications requiring precise information retrieval and context-aware interactions.

License

Notifications You must be signed in to change notification settings

HamidrezaGholamrezaei/LLM_LangChain_ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM_LangChain_ChatBot

Introduction

The LLM_LangChain_ChatBot is a Retrieval-Augmented Generation (RAG) tutorial designed to guide you how to build a chatbot that responds to queries based on the content of the provided dataset. Unlike traditional models that respond based on pre-learned information, this model dynamically retrieves information from a document corpus to generate answers.

Workflow

Follow through the Jupyter Notebook to understand the complete workflow of building a context-aware chatbot using RAG:

  1. Document Loading: Importing text from URLs.
  2. Document Splitting: Breaking down documents into manageable chunks.
  3. Vector Storing: Embedding document chunks for efficient retrieval.
  4. Retrieval: Fetching relevant text based on user queries.
  5. Question Answering: Generating responses using a large language model.
  6. Interactive Widgets: Experiment with different queries interactively.

Setup and Installation

Clone the repository and install the required dependencies:

pip install -r requirements.txt

Usage

Execute the Jupyter Notebook LLM_LangChain_ChatBot.ipynb to follow the tutorial. The notebook guides you through each step of the process, from loading data to interacting with the chatbot.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

LLM_LangChain_ChatBot is a contextual document retrieval chatbot that leverages LangChain to process user queries and generate accurate responses based on the content of retrieved documents. Ideal for applications requiring precise information retrieval and context-aware interactions.

Topics

Resources

License

Stars

Watchers

Forks