NVIDIA / NeMo-Guardrails

NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems.
Other
4.21k stars 400 forks source link

RAG Bot Example: Enhancing RAG with NVIDIA NIMs, NeMo Guardrails, LlamaGuard, and AlignScore #718

Closed abodhankar closed 2 months ago

abodhankar commented 2 months ago

In this example, we learn how to integrate LlamaGuard, a safeguard LLM with NeMo Guardrails into our custom NVIDIA NIM-powered RAG pipeline to have more secure, moderated responses for user queries. We also learn how to integrate the AlignScore metric to check the factual consistency of the LLM response with the retrieved chunks from the vector database.