Most students I've taught have used ChatGPT. Far fewer have called a model from code.
That is the gap this post is meant to close. In 30 minutes, you'll call an NVIDIA-hosted language model from Python, pass it a small knowledge base, and make it answer only from that data. No GPU setup, no CUDA detour, no pretending a notebook is production. The goal is simple — write a normal Python program that talks to an LLM and gets useful text back.
I'm B Torkian, NVIDIA Developer Champion, and I use this as a starter workshop for university and community groups. I've run a version of it with about 40 students. What usually surprises people is how ordinary the app feels. Most of it is normal software; one function call in the middle just happens to be weirdly powerful.
Everything runs in Google Colab because, for a room full of mixed laptops (I have made peace with this), boring setup wins.
This is Part 1 of a 5-part series that goes from one API call all the way to a small tool-using agent. Each post stands on its own, so start here and move forward as far as you want to go.
What you're building
User question → Python app → NVIDIA NIM API → LLM response → App output
A small campus assistant. It will call an NVIDIA-hosted Llama model, use the data you provide, and refuse when the answer isn't there.
That refusal part matters. Demos can guess. Useful apps need to know when to say "I don't know."
What NVIDIA NIM is
NIM stands for NVIDIA Inference Microservices. For this post, treat it as hosted model inference from NVIDIA with a clean API in front.
There are two common ways to use it:
- Hosted through NVIDIA's API Catalog at
- An API key from
One-click Colab: Open the notebook
Next in this series
Part 2: Give Your AI App Real Knowledge — Embedding-Based RAG with NVIDIA NIM. We replace the hand-picked context string with a real retriever that uses NVIDIA's embedding model, cosine similarity, and a query/passage distinction that most beginners get wrong on the first try.
↗ Original-Artikel auf dev.to lesenVollständiger Original-BerichtAusführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
SOCIAL SHARE CARD GENERATOR