Skip to content

Generative AI reference workflows optimized for accelerated infrastructure and microservice architecture.

License

Notifications You must be signed in to change notification settings

dwetmore/GenerativeAIExamples

 
 

Repository files navigation

NVIDIA Generative AI Examples

This repository serves as a starting point for generative AI developers looking to integrate with the NVIDIA software ecosystem to accelerate their generative AI systems. Whether you are building RAG pipelines, agentic workflows, or finetuning models, this repository will help you integrate NVIDIA, seamlesly and natively, with your development stack.

What's new?

Knowledge Graph RAG

The example implements a GPU-accelerated pipeline for creating and querying knowledge graphs using RAG by leveraging NIM microservices and the RAPIDS ecosystem for efficient processing of large-scale datasets.

Agentic Workflows with Llama 3.1

RAG with local NIM deployment and Langchain

  • Tips for Building a RAG Pipeline with NVIDIA AI LangChain AI Endpoints by Amit Bleiweiss. [Blog, notebook]

NeMo Guardrails with RAG

  • Notebook for demonstrating how to integrate NeMo Guardrails with a basic RAG pipeline in LangChain to ensure safe and accurate LLM responses using NVIDIA NIM microservices. [Blog, notebook]

For more details view the releases.

Try it now!

Experience NVIDIA RAG Pipelines with just a few steps!

  1. Get your NVIDIA API key.

    Visit the NVIDIA API Catalog, select on any model, then click on Get API Key

    Afterward, run export NVIDIA_API_KEY=nvapi-....

  2. Clone the repository and then build and run the basic RAG pipeline:

    git clone https://github.com/nvidia/GenerativeAIExamples.git
    cd GenerativeAIExamples/RAG/examples/basic_rag/langchain/
    docker compose up -d --build

Open a browser to https://localhost:8090/ and submit queries to the sample RAG Playground.

When done, stop containers by running docker compose down.

End to end RAG Examples and Notebooks

NVIDIA has first class support for popular generative AI developer frameworks like LangChain, LlamaIndex and Haystack. These notebooks will show you how to integrate NIM microservices using your preferred generative AI development framework.

Notebooks

Use the notebooks to learn about the LangChain and LlamaIndex connectors.

LangChain Notebooks

LlamaIndex Notebooks

End to end RAG Examples

By default, the examples use preview NIM endpoints on NVIDIA API Catalog. Alternatively, you can run any of the examples on premises.

Basic RAG Examples

Advanced RAG Examples

How To Guides

Tools

Example tools and tutorials to enhance LLM development and productivity when using NVIDIA RAG pipelines.

Community

We're posting these examples on GitHub to support the NVIDIA LLM community and facilitate feedback. We invite contributions! Open a GitHub issue or pull request!

Check out the community examples and notebooks.

Related NVIDIA RAG Projects

About

Generative AI reference workflows optimized for accelerated infrastructure and microservice architecture.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.6%
  • Jupyter Notebook 44.3%
  • Shell 1.3%
  • HTML 1.1%
  • Dockerfile 0.6%
  • CSS 0.1%