3Techniques to improve generative AI model output
- 3.1Prompt engineering
Understand prompt techniques that improve output quality: the basics of giving clear instructions, context, and an expected output format; zero-shot vs few-shot (no examples vs examples); assigning a role (persona); prompting step-by-step reasoning; and tuning output randomness with temperature.
- 3.2Grounding, RAG, and fine-tuning
Understand how to choose among key techniques to improve output: grounding and RAG (retrieval-augmented generation) to answer accurately from your own data, embeddings and vector search for semantic retrieval, fine-tuning to adapt the model to a domain, function calling (tools) to invoke external systems, and evaluation to measure output quality.

