Skip to main content
NVIDIARAGRetriever connects LangChain to a running NVIDIA RAG Blueprint server and retrieves relevant documents via the /v1/search endpoint. It supports sync and async retrieval, reranking, query rewriting, and metadata filtering.

Overview

Integration details

ClassPackageLocalSerializableJS supportDownloadsVersion
NVIDIARAGRetrieverlangchain-nvidia-ai-endpointsbetaPyPI - DownloadsPyPI - Version

Setup

NVIDIARAGRetriever requires a running NVIDIA RAG Blueprint server. Refer to the NVIDIA RAG Blueprint documentation for deployment instructions. By default the server listens on http://localhost:8081 and expects at least one ingested collection in its vector database. No API key is required for the retriever; authentication is handled by the RAG server.

Installation

Instantiation

Key parameters:
ParameterTypeDefaultDescription
base_urlstrBase URL of the RAG Blueprint server
kint10Number of documents to return (0–25)
collection_nameslist[str]["multimodal_data"]Vector database collections to search
vdb_top_kint100Results retrieved before reranking (0–400)
enable_rerankerboolTrueEnable reranking of retrieved results
enable_query_rewritingboolFalseEnable query rewriting before search
confidence_thresholdfloat0.0Minimum relevance score (0.0–1.0) to include a document
timeoutfloat60HTTP request timeout in seconds

Usage

Async retrieval is also supported:

Use within a chain

API reference

For detailed documentation of all NVIDIARAGRetriever features and configurations head to the API reference.