Code Monkey home page Code Monkey logo

nebeyoumusie / end-to-end-advanced-rag-project-using-open-source-llm-models-and-groq-inferencing Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 78 KB

In this project I have built an end to end advanced RAG project using open source llm model, Mistral using groq inferencing engine.

Home Page: https://8510-01hwj8ynshjz7spkr595x77ec2.cloudspaces.litng.ai/

Python 100.00%
chatbot faiss-vector-database groq groq-api huggingface-embeddings llm retrieval-augmented-generation web-scrapping langchain streamlit

end-to-end-advanced-rag-project-using-open-source-llm-models-and-groq-inferencing's Introduction

End To End Advanced RAG Project using Open Source LLM Models And Groq Inferencing

  • In this project I have built an end to end advanced RAG project using open source llm model, Mistral using groq inferencing engine.

Groq for RAG Image

DEMO

  • You can try the project live here

Description

  • This project showcase the implementation of an advanced RAG system that uses groq as an llm to retrieve information about langsmith.

Steps I followed:

  1. I have used the WebBaseLoader from the langchain_community document loader to load the data from the https://docs.smith.langchain.com/ webpage.
  2. transformed each text into a chunk of 1000 using the RecursiveCharacterTextSplitter imported from the langchain.text_splitter
  3. stored the vector embeddings which were made using the HuggingFaceInstructEmbeddings using the FAISS vector store.
  4. setup the llm ChatGroq with the model name mixtral-8x7b-32768
  5. Setup ChatPromptTemplate
  6. finally created the document_chain and retrieval_chain for chaining llm to prompt and retriever to document_chain respectively

Libraries Used

  • langchain==0.1.20
  • langchain-community==0.0.38
  • langchain-core==0.1.52
  • langchain-groq==0.1.3
  • faiss-cpu==1.8.0
  • python-dotenv

Installation

  1. Prerequisites
    • Git
    • Command line familiarity
  2. Clone the Repository: git clone https://github.com/NebeyouMusie/End-To-End-Advanced-RAG-Project-using-Open-Source-LLM-Models-And-Groq-Inferencing.git
  3. Create and Activate Virtual Environment (Recommended)
    • python -m venv venv
    • source venv/bin/activate
  4. Navigate to the projects directory cd ./End-To-End-Advanced-RAG-Project-using-Open-Source-LLM-Models-And-Groq-Inferencing using your terminal
  5. Install Libraries: pip install -r requirements.txt
  6. run streamlit run app.py
  7. open the link displayed in the terminal on your preferred browser

Collaboration

  • Collaborations are welcomed ❤️

Acknowledgments

Contact

end-to-end-advanced-rag-project-using-open-source-llm-models-and-groq-inferencing's People

Contributors

dependabot[bot] avatar nebeyoumusie avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.