This directory contains standalone examples which has their own seperate end to end workflow like UI, deployment methodologies and tools showcasing different usecases.
This is a simple standalone implementation showing a a minimalistic RAG pipeline using models available in Nvidia AI playground. NVIDIA AI Foundation lets developers to experience state of the art LLMs accelerated by NVIDIA. Developers get free credits for 10K requests to any of the available models. It uses connectors available in Langchain to build the workflow. These open source connectors are maintained and tested by NVIDIA engineers. This example leverages a simple Streamlit based UI and has a one file implementation. This example does not need any GPU to run.
-
Create a python virtual environment and activate it
python3 -m virtualenv genai source genai/bin/activate -
Goto the root of this repository
GenerativeAIExamplesand execute below command to install the requirementspip install -r examples/5_mins_rag_no_gpu/requirements.txt -
Set your NVIDIA_API_KEY. Follow the steps mentioned here to get this.
export NVIDIA_API_KEY="provide_your_key" -
Run the example using streamlit
streamlit run examples/5_mins_rag_no_gpu/main.py
-
Finally to test the deployed example, goto the URL
http://<host_ip>:8501in a web browser. Click onbrowse filesand select your knowledge source. After selecting click onUpload!button to complete the ingestion process. -
You are all set now! Try out queries pertinent to the knowledge base using text from the UI.