Skip to content

Commit c10a71d

Browse files
authored
Update main.py with new API Catalog models
1 parent 2418ff4 commit c10a71d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

community/5_mins_rag_no_gpu/main.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
# This is a simple standalone implementation showing rag pipeline using Nvidia AI Foundational models.
1717
# It uses a simple Streamlit UI and one file implementation of a minimalistic RAG pipeline.
1818

19-
############################################
20-
# Component #1 - Document Loader
21-
############################################
22-
2319
import streamlit as st
2420
import os
2521
from langchain_nvidia_ai_endpoints import ChatNVIDIA, NVIDIAEmbeddings
@@ -50,8 +46,7 @@
5046

5147
# Component #2 - Embedding Model and LLM
5248
llm = ChatNVIDIA(model="meta/llama3-70b-instruct")
53-
document_embedder = NVIDIAEmbeddings(model="NV-Embed-QA", model_type="passage")
54-
#query_embedder = NVIDIAEmbeddings(model="NV-Embed-QA", model_type="query")
49+
document_embedder = NVIDIAEmbeddings(model="nvidia/nv-embedqa-e5-v5", model_type="passage")
5550

5651
# Component #3 - Vector Database Store
5752
with st.sidebar:

0 commit comments

Comments
 (0)