Search Tutorials
--Ads--Understanding LLMs for RAG
How large language models work, the main model families, sampling, function calling and choosing a model for RAG.
- 1Transformer Architecture and Attention ExplainedHow transformers and self-attention work, explained without heavy maths, with a NumPy attention example.
- 2LLM Families: GPT, Claude, Gemini, Llama, Qwen and MistralAn overview of the major LLM families, open-weight vs proprietary models, and what matters for RAG.
- 3Choosing an LLM for RAGCriteria, trade-offs and a test harness for choosing and comparing LLMs for a RAG application.
- 4LLM Inference, Temperature and SamplingHow LLMs generate text step by step, and how temperature, top-p, top-k and effort settings affect RAG answers.
- 5Function Calling and Tool Use with LLMsLet an LLM call your Python functions: tool schemas, the request-execute-respond loop, and safety.