Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Outline

Running RAG Example Notebooks

About the Notebooks

The notebooks show how to use the langchain-nvidia-ai-endpoints and llama-index-embeddings-nvidia Python packages. These packages provide the basics for developing a RAG application and performing inference either from NVIDIA API Catalog endpoints or a local deployment of NVIDIA microservices.

Prerequisites

Running the Notebooks

  1. Export your NVIDIA API key as an environment variable:

    export NVIDIA_API_KEY="nvapi-<...>"
    
  2. Create a virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
  3. Install JupyterLab in the virtual environment:

    pip3 install jupyterlab
  4. Start the JupyterLab server:

    jupyter lab --allow-root --ip=0.0.0.0 --NotebookApp.token='' --port=8889
  5. Open a web browser and access http://localhost:8889/lab.

    Browse to the RAG/notebooks directory to open an execute the cells of the notebooks.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.