ByHeartAI

Learn AI. Know it by heart.

Understand modern AI concepts through simple explanations, interactive visuals, real examples, and hands-on learning — in one calm, reading-first place.

Explore AI

Browse the full curriculum

Choose your path

Start reading

The Agent LoopAgent Memory & StateAgent vs Chatbot vs WorkflowHuman-in-the-LoopMulti-Agent SystemsPlanning & ReflectionWhat is ReAct?Tool SelectionWhat is an AI Agent?Design an AI Search EngineDesign a Coding AgentDesign an Enterprise Knowledge AssistantDesign a RAG ChatbotDesign a Research or Multi-Agent SystemDesign a Customer-Support AgentHow to Design an AI SystemContext CachingContext CompressionSelection & PrioritizationState ManagementLong-Context StrategiesPrompt Engineering vs Context EngineeringWhat are Autoencoders?What are CNNs?What are GANs?LSTMs and GRUsNeurons, Layers, and ActivationsWhat are RNNs?Why Transformers Replaced RNNsDense vs Sparse EmbeddingsEmbedding Models & DimensionsWhat are Matryoshka Embeddings?Similarity: Cosine, Dot Product & EuclideanWhat are Embeddings?Benchmarks, Gold Sets, and Regression TestsHallucination and Safety EvaluationHuman EvaluationLLM-as-a-JudgeOffline vs Online EvaluationQuality, Latency, Cost, and ReliabilityWhy Evaluation MattersFull Fine-tuning vs PEFTInstruction Tuning vs Preference TuningLoRA and QLoRAWhat is Quantization?What is Fine-tuning?When to Fine-tune vs RAG vs PromptingWhat is Backpropagation?Datasets, Features, and LabelsWhat is a Loss Function?Optimization and Gradient DescentParameters vs HyperparametersTraining vs InferenceWhat is AI?What is Deep Learning?What is Machine Learning?What is a Model?What is a Neural Network?Batching and Continuous BatchingGPU Memory and Distributed InferenceCaching and Cost OptimizationKV Cache at Serving TimeLatency vs ThroughputModel Routing and FallbacksModel Serving and Inference ServersQuantization for ServingWhat is Inference?What is a Context Window?What is Function Calling (Tool Use)?What is Prompt Engineering?What are Reasoning Models?What are Small Language Models (SLMs)?What is Streaming?What is Structured Output?Temperature & SamplingWhat is Tokenization?What is an LLM?What is a Token?Precision, Recall, F1, and ROC-AUCWhat is Classification?What is Clustering?What is Cross-Validation?What are Decision Trees?Gradient Boosting and XGBoostOverfitting vs UnderfittingWhat are Random Forests?What is Regression?Supervised, Unsupervised, and Reinforcement LearningBuilding an MCP ServerConsuming an MCP ServerMCP + Agents, IDEs, and ProductsMCP ArchitectureMCP Authentication & AuthorizationTools, Resources, and PromptsMCP Security Risks & Best PracticesWhat is MCP?Why MCP ExistsLong-term MemoryMemory Conflicts & SecurityStorage, Retrieval & ForgettingSemantic, Episodic & Procedural MemoryShort-term Memory & Conversation HistoryUser Memory vs Agent MemoryAudio & Video UnderstandingImage Understanding & OCRImage & Video GenerationMultimodal AgentsMultimodal Embeddings & RAGSpeech-to-Text & Text-to-SpeechVision-Language ModelsTool, Retrieval, and Agent TracesPrompt Versioning and Evaluation TracesToken Usage, Latency, and Cost TrackingTracing, Logging, and MetricsWhat is AI Observability?Agentic RAG & Advanced PatternsWhat is Chunking?What is Contextual Retrieval?What is Query Transformation?RAG ArchitectureHow to Evaluate RAGRAG vs Fine-tuning vs Long ContextReranking & Cross-EncodersWhat is RAG?Data Leakage and Sensitive DisclosureIndirect Prompt InjectionInsecure Output HandlingJailbreaksAgent Permission BoundariesWhat is Prompt Injection?RAG PoisoningSecrets Management and SandboxingTool Abuse and Excessive AgencyWhat is a KV Cache?What is Multi-Head Attention?What is Positional Encoding?What is Self-Attention?What is Attention?What is a Transformer?Exact vs Approximate Nearest NeighborWhat is HNSW?What is Hybrid Search?IVF & Product QuantizationWhat is Metadata Filtering?What is Vector Search?What is a Vector Database?

Every lesson ends with one essential idea to remember — so you don't just read it, you know it by heart.