Giter VIP home page Giter VIP logo

mickymultani / nvidia-nim-rag Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 4.0 3 KB

Project demonstrates the power and simplicity of NVIDIA NIM (NVIDIA Inference Model), a suite of optimized cloud-native microservices, by setting up and running a Retrieval-Augmented Generation (RAG) pipeline.

License: MIT License

Python 100.00%
enterpriseservices genai langchain large-language-models llm-inference llmops nim nvidia nvidia-docker nvidia-gpu

nvidia-nim-rag's Introduction

RAG using NVIDIA NIM with LangChain

Overview

This project demonstrates the power and simplicity of NVIDIA NIM (NVIDIA Inference Model), a suite of optimized cloud-native microservices, by setting up and running a Retrieval-Augmented Generation (RAG) pipeline. NVIDIA NIM is designed to streamline the deployment and time-to-market of generative AI models across various environments, including cloud platforms, data centers, and GPU-accelerated workstations. By abstracting the complexities of AI model development and leveraging industry-standard APIs, NIM makes advanced AI technologies accessible to a broader range of developers.

Getting Started

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/mickymultani/nvidia-NIM-RAG.git
    cd nvidia-NIM-RAG
    
  2. Set up a virtual environment

    Create a virtual environment named nvidia:

    python -m venv nvidia
    

    Activate the virtual environment:

    • On Windows:
      nvidia\Scripts\activate
    • On macOS/Linux:
      source nvidia/bin/activate
      
  3. Install dependencies

    Install the required packages using pip:

    pip install -r requirements.txt
    
  4. Environment Variables

    Create a .env file in the root directory of the project, and add your NVIDIA API key:

    NVIDIA_API_KEY=your_nvidia_api_key_here
    

    Replace your_nvidia_api_key_here with your actual NVIDIA API key.

Usage

To run the project, execute the following command:

python nim.py

Contributing

Contributions to this project are welcome!

License

Distributed under the MIT License.

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.