Skip to content

AI Concepts — Deep Reference

Core AI/ML concepts every developer working with LLMs and AI systems should understand. Organized by category. Each concept includes what it is, how it works internally, code examples, and practical context.

Files

#FileTopics
101-llm-fundamentals.mdTransformer architecture, self-attention, multi-head attention, positional encoding, encoder vs decoder, GPT vs BERT architecture comparison
202-tokenization-and-embeddings.mdBPE, SentencePiece, WordPiece, token limits, embedding spaces, word2vec, semantic similarity, dimensionality
303-prompt-engineering.mdZero-shot, few-shot, chain-of-thought, system prompts, temperature/top-p, structured output, prompt injection risks
404-fine-tuning-and-training.mdPre-training vs fine-tuning, LoRA/QLoRA, RLHF, DPO, instruction tuning, dataset preparation, evaluation
505-rag-fundamentals.mdRAG pipeline overview, when to use RAG vs fine-tuning, chunking strategies, retrieval + generation flow, hallucination reduction
606-vector-databases.mdVector DB concepts (indexing, ANN search, HNSW, IVF), Pinecone, Chroma, pgvector, Weaviate, comparison and trade-offs
707-embeddings-and-similarity.mdEmbedding models (OpenAI, Cohere, open-source), cosine similarity, dot product, distance metrics, re-ranking, hybrid search
808-mcp-model-context-protocol.mdWhat MCP is, architecture (host/client/server), transport (stdio, SSE), tools/resources/prompts, building MCP servers, security
909-tool-use-and-function-calling.mdFunction calling patterns, tool schemas (JSON Schema), orchestration loops, error handling, parallel tool calls
1010-ai-agents-and-orchestration.mdAgent architectures (ReAct, plan-and-execute), LangChain, LlamaIndex, memory patterns, multi-agent systems
1111-ml-fundamentals.mdNeural network basics, backpropagation, loss functions, optimizers, overfitting/regularization, batch normalization
1212-ml-architectures.mdCNNs, RNNs/LSTMs, attention mechanism evolution, diffusion models, GANs, training vs inference trade-offs

Frontend interview preparation reference.