This project focuses on integrating advanced language models with web-based information retrieval systems.
This project is maintained by samueljayasingh
This repository contains an implementation of Retrieval-Augmented Generation (RAG) using the Llama 3 model on Google Colab. This project integrates LangChain and Chroma for document retrieval and embedding, demonstrating how to combine a retrieval system with a powerful language model for answering questions based on a custom dataset.
Retrieval-Augmented Generation (RAG) is a technique that enhances the capabilities of a language model by incorporating external knowledge sources, such as documents or web pages. This project leverages RAG by:
git clone https://github.com/SamuelJayasingh/Llama3_RAG_for_Web.git
cd Llama3_RAG_for_Web
Install the necessary Python libraries using pip. Ensure your environment includes the following dependencies:
pip install langchain chromadb flask pandas requests gradio ollama
To run this project in Google Colab:
.ipynb notebook included in this repository.To test the model on your own dataset:
After setting up your dataset, you can ask questions to the Llama 3 model. The system will:
This project includes a Gradio-based interface for interacting with the RAG pipeline. Launch the Gradio UI by running the code, then enter your question in the text box to get a response.
Question: What is the role of LangChain in this project?
LangChain helps to manage and chain the different components of the retrieval and generation process. It connects the document retrieval system with the language model to provide context-aware answers.
If you have any suggestions to this README or about the Script, feel free to inform me. And if you liked, you are free to use it for yourself.(P.S. Star it too!! 😬 )
Your Contributions are much welcomed here!
Fork the project
Compile your work
Call in for a Pull Request
Credits: Samuel Jayasingh
Last Edited on: 15/10/2024
This project is licensed under the MIT License. See the LICENSE file for details.