Giter Club home page Giter Club logo

end-to-end-rag's Introduction

End-to-End RAG Pipeline

Welcome to the End-to-End Retrieval-Augmented Generation (RAG) Pipeline project! This repository provides a complete solution for building, deploying, and interacting with a RAG pipeline, leveraging various modern technologies including LangChain, Pinecone, OpenAI, and Streamlit.

credits goes to :https://github.com/Vasanthengineer4949/End-to-End-RAG/tree/main

Table of Contents

Overview

The End-to-End RAG Pipeline project is designed to facilitate the process of loading documents, creating embeddings, storing them in a vector store, and running queries against this store using a Language Model (LLM). This project integrates several components to provide a seamless experience for building and interacting with an RAG pipeline.

Features

  • Document Loading: Load documents from web URLs using WebBaseLoader.
  • Text Splitting: Efficiently split documents into chunks with RecursiveCharacterTextSplitter.
  • Embedding Generation: Generate embeddings using OpenAI's models.
  • Vector Store: Store embeddings in Pinecone for fast retrieval.
  • Language Model Integration: Utilize Groq's LLM for processing queries.
  • Guardrails: Ensure safe and effective interactions with NeMo Guardrails.
  • Streamlit Interface: User-friendly interface for interacting with the pipeline.

Installation

Prerequisites

Setup

  1. Clone the Repository
    git clone https://github.com/your-username/end-to-end-rag.git
    cd end-to-end-rag
    
  2. Create and Activate Virtual Environment
   python3 -m venv venv
   source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  1. Install Dependencies
    pip install -r requirements.txt
    or
    Pipfile
  2. Environment Variables
    OPENAI_API_KEY=your_openai_api_key

PINECONE_API_KEY=your_pinecone_api_key GROQ_API_KEY=your_groq_api_key LANGSMITH_API_KEY=your_langsmith_api_key

5. **Running the Streamlit App**
```sh
streamlit run app.py

or

pipenv streamlit run app.py

Project Structure: . ├── README.md ├── app.py ├── run.py ├── config │ ├── actions.py │ ├── config.py │ ├── config.yml │ ├── rails.co │ └── ... ├── requirements.txt └── .env

end-to-end-rag's People

Contributors

mehranmzn 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.