Skip to Content
Development & TechAI & Machine Learning

AI & Machine Learning

Concepts, models, tools, and prompt engineering β€” referenced and explained clearly.

Foundational Concepts

Machine Learning Types

  • Supervised learning β€” trained on labeled data (classification, regression)
  • Unsupervised learning β€” finding patterns in unlabeled data (clustering, dimensionality reduction)
  • Reinforcement learning β€” agent learns via reward/penalty feedback

Key Terms

TermDefinition
ModelA mathematical function trained on data to make predictions
TrainingAdjusting model weights to minimize loss on a dataset
InferenceRunning a trained model to produce output
Fine-tuningFurther training a pre-trained model on specific data
EmbeddingsDense vector representations of data (text, images, etc.)
TokensUnits of text processed by language models

Large Language Models (LLMs)

LLMs are transformer-based models trained on vast text corpora to predict and generate text.

Prompt Engineering Principles

  1. Be specific β€” clear instructions outperform vague ones
  2. Provide context β€” include relevant background
  3. Use examples β€” few-shot prompting improves output quality
  4. Define the format β€” ask for JSON, bullet points, tables as needed
  5. Iterate β€” treat prompts as code: version and refine

Common Patterns

  • RAG (Retrieval-Augmented Generation) β€” ground LLM responses in retrieved documents
  • Chain of Thought β€” prompt the model to reason step by step
  • Tool use / Function calling β€” LLM selects and calls predefined functions

References

Last updated on