Exercises
ex-sp-ch36-01
EasyCall an LLM API to summarize a wireless paper abstract in 3 bullet points. Parse the response as JSON.
ex-sp-ch36-02
EasyCount the tokens in 5 different prompts using tiktoken. Compare zero-shot vs few-shot token usage.
ex-sp-ch36-03
EasyWrite a system prompt that makes the LLM respond only in LaTeX mathematical notation.
ex-sp-ch36-04
EasyImplement exponential backoff retry logic for API calls using the tenacity library.
ex-sp-ch36-05
MediumDesign a few-shot prompt for classifying wireless papers into 6 categories. Evaluate accuracy on 20 test papers.
ex-sp-ch36-06
MediumImplement chain-of-thought prompting for computing link budget calculations. Compare accuracy with direct prompting.
ex-sp-ch36-07
MediumBuild a tool-use system where the LLM can call a BER simulation function and interpret the results.
ex-sp-ch36-08
MediumBuild a simple RAG system using FAISS and sentence-transformers over 50 paper abstracts.
ex-sp-ch36-09
MediumCompare the outputs of 3 different LLMs (GPT-4, Claude, LLaMA) on the same wireless engineering question.
ex-sp-ch36-10
HardBuild a multi-turn conversation system that maintains context across API calls for debugging simulation code.
ex-sp-ch36-11
HardImplement RAG with hybrid search (combining BM25 keyword search with dense embedding search) and evaluate retrieval quality.
ex-sp-ch36-12
HardBuild an LLM agent that can search arXiv, download papers, extract key results, and generate comparison tables.
ex-sp-ch36-13
HardSet up local inference with Ollama and benchmark throughput, latency, and quality against cloud APIs.
ex-sp-ch36-14
ChallengeBuild a complete research assistant that uses RAG, tool use, and multi-turn conversation to help design a MIMO simulation.
ex-sp-ch36-15
ChallengeImplement prompt caching and measure cost savings over 1000 API calls with shared system prompts.