University Project
LLM Comparison, Ollama & RAG
Notebook experiments comparing hosted and local language models and exploring retrieval-augmented answers.
Main functionality
- Run common prompts through the available providers and a local Ollama model. Compare a prompt before and after adding retrieved context from a small document collection.
Objective
Compare hosted and locally run language models and explore how retrieved reference text changes answers.
Architecture
The notebook separates model calls, prompt variants and retrieval grounding, making it possible to inspect the retrieved context alongside generated answers.
Engineering practices
Use repeated prompts and a before/after comparison. Record service failures or credit limits separately from response observations.
Learning and outcomes
The exercise developed experience comparing model outputs and identifying when source material helps an answer become easier to verify.
