raw notes. real code. actual experience.
by akriceus — data scientist @ gedu.
no fluff. no paywalls. just the signal.
click a level to expand. follow this order. don't skip.
start here: Karpathy "Intro to LLMs" (YouTube, 1hr) → DeepLearning.AI "ChatGPT Prompt Engineering for Devs" → Anthropic Prompt Engineering docs
key project: RAG chatbot over your own docs. FastAPI + ChromaDB + Dash. build this before touching agents.
key project: multi-agent due diligence pipeline. supervisor routes to researcher, analyst, writer sub-agents. state in LangGraph.
mindset shift: bottleneck is now evals and iteration speed, not model capability. instrument everything. treat LLM calls like db queries.
12 core concepts. click any card to go deeper. no shortcuts.
click any card to go deeper ↗
beyond the technical. the strategic, the philosophical, the stuff no course teaches you.
Fable 5.2 (Nov 9) is the new #1 on the Artificial Analysis index, now $8/$40, but it rejects temperature / top_p. Opus 5.5 is still the recommended heavy default, Sonnet 5.5 the daily driver. Haiku 5.5 finally replaced 4.5: $0.10/$0.50 and good enough to run agents. what I build with at work.
Astra is the flagship. 6.1 Sol (DevDay) is the agent workhorse. 6.1 Terra (Oct 26) is the value pick: $1/$5 and 3x faster at computer use. gated specialists on the side: Rosalind for science, GPT-6 Cyber. Codex + Responses API is the agent story.
Gemini 4 finally landed. Argon went to cyber defenders first, then general, with 1M output tokens. Carbon is #2 on the index but still Vertex-only. 3.8 Flash stays the speed pick, but its price doubles on Jan 1. also shipped: Harness², see new updates.
Kimi K3.1 Pro (Apache 2.0) is the best open model right now. Qwen 4 is API-only until weights drop (promised Dec 20). Meta is back with Muse Spark Open (816B, own license). Mistral Large 4 is GA. DeepSeek V4.1 Flash is the cheap multimodal pick. Qwen 3.8 27B is still my laptop model.
System One model: typed Choice / Score / yes-no answers with calibrated probabilities in ~100ms. stop burning frontier tokens on routing and classification. full breakdown in the jev section below.
GPT-4 wrappers with no moat. $100M valuations on 3-person teams with no proprietary data. "AI-powered" SaaS that's literally just a prompt + API call with a landing page.
companies with proprietary data + tight AI integration. the infra layer (Anthropic, OpenAI, Google). tooling. domain-specific apps with high switching costs and network effects.
data flywheel + fine-tuned models + workflow integration. models are being commoditized fast. your moat is your data and your eval pipeline. build those.
TypeSafe's "System One" model, launched Sep 2026. it doesn't generate text. it answers typed questions with calibrated probabilities. think of it as a smart if statement for your agent graph.
labeled options with descriptions, up to 255. returns the pick, the full probability distribution and a confidence score.
ordered levels (2–10). returns a probability-weighted score plus confidence. combine several into composite rankings.
a single 0–1 probability. no confidence field, you set the threshold. that's the point: your code owns the cut-off.
from typesafe_sdk import TypeSafeClient, Choice, Noul client = TypeSafeClient() # reads TYPESAFE_API_KEY res = client.system_one( state=user_message, questions={ "route": Choice( instructions="Which specialist should handle this?", criteria={ "rag": "Question answerable from our docs", "sql": "Needs numbers from the database", "human": "Complaint, legal, or account change", }, ), "urgent": Noul(instructions="Does this need a reply today?"), }, ) route = res.answers["route"] if route.confidence < 0.5: next_node = "human" # unsure → escalate, don't guess else: next_node = route.choice urgent = res.answers["urgent"].noul > 0.7
the answer is one of a known set of options. you make the same decision thousands of times. latency matters (voice, chat, agent loops). you want a probability you can threshold instead of a string you have to parse.
writing prose or code. math, counting, or extracting dates and numbers (do that in code). images, audio or video (text in only, for now). anything needing more than ~32k tokens of state. open-ended reasoning: that's still your LLM's job.
brand new (Sep 2026), closed weights, architecture not published. the "40–400x cheaper" numbers are TypeSafe's own benchmarks on their own workflows. run it against your golden set before ripping out a working classifier.
new models, tools and techniques as they ship, and what they change about how you build. dates are public release dates, prices are per 1M input / output tokens. latest batch: sep to nov 2026.
gpt-6.1-terra.swap Haiku 4.5 → 5.5 for routing and extraction, it's cheaper and smarter. try GPT-6.1 Terra for anything that reads screenshots or drives a UI. keep Opus 5.5 / Sonnet 5.5 as the default stack.
Fable 5.2 rejects sampling params, so any wrapper that hardcodes temperature=0 breaks. Gemini price doubles in dec / jan. model IDs churn fast: DeepSeek V4 Flash lived six weeks. pin IDs, wrap them in config.
the frontier is splitting into public models and gated specialists (Mythos, Rosalind, Cyber, Argon-for-defenders). and the gains people are chasing are moving out of the weights and into the harness. more on that below.
the harness is everything around the model: system prompt, tools, memory, skills, guardrails. Harness² keeps the weights frozen and lets the agent edit that layer, but only keeps an edit if a side-by-side run proves it changed behaviour. no ground-truth labels needed. it's a research framework, not a supported Google product.
after a reference run of the current harness, the editor proposes one general fix (better tool use, say) and one task-specific fix (a checking step for spreadsheets, say).
each candidate runs on the same task with the same model and environment. behaviour gets compared against the reference run.
only edits with observed behavioural differences make it into the composed harness. then a reflector writes lessons to EXPERIENCE.md in a per-domain library for future tasks.
harness/ ├── systemprompt.md # overarching instructions ├── guardrails.md # written constraints (NOT a security boundary) ├── LongTermMEMORY.md # persistent context ├── tool_guidance.md # how to pick + use tools ├── sub_agents/<name>/AGENT.md # delegated roles ├── skills/<name>/SKILL.md # reusable procedures ├── scripts/<name>.py # executable helpers └── plugin/<name>.ts # middleware around execution # try the credential-free demo (shows the mechanics, not benchmark gains) git clone https://github.com/google-research/harness2.git cd harness2 && uv venv --python 3.12 .venv && source .venv/bin/activate uv pip install -e '.[render]' harness2-demo --output runs/demo --k 2
--max-tasks caps tasks, not dollars).pure-python interface to Graphviz's DOT language. build, parse and render graphs from code. the useful bit for us: turn a compiled LangGraph into a real diagram for docs, PRs and design reviews, with clusters, colours and conditional edges styled the way you want. Mermaid is fine for a README. DOT is what you reach for when the graph gets big.
import pydot def langgraph_to_dot(app, name="agent") -> pydot.Dot: g = app.get_graph() # compiled StateGraph → drawable graph dot = pydot.Dot(name, graph_type="digraph", rankdir="LR", bgcolor="transparent", fontname="monospace") for node_id in g.nodes: terminal = node_id in ("__start__", "__end__") dot.add_node(pydot.Node( f'"{node_id}"', # quote ids: DOT chokes on some names shape="circle" if terminal else "box", style="rounded,filled", fillcolor="#1e1b4b", fontcolor="white")) for e in g.edges: dot.add_edge(pydot.Edge( f'"{e.source}"', f'"{e.target}"', style="dashed" if e.conditional else "solid", color="#a78bfa" if e.conditional else "#22d3ee")) return dot dot = langgraph_to_dot(app) dot.write_svg("agent.svg") # or write_png / write_pdf print(dot.to_string()) # raw DOT: diff it in PRs
pydot.Dot(graph_type="digraph"), then add_node / add_edge. any Graphviz attribute is a kwarg.pydot.graph_from_dot_data(s) returns a list of graphs. take [0].pydot.Cluster("rag", label="retrieval") draws a box around a subgraph. great for supervisor / worker layouts.write_svg, write_png, create_png() for bytes (e.g. streamed from FastAPI).nx.drawing.nx_pydot.to_pydot(G) and back. handy for knowledge graphs in GraphRAG.: or spaces need quoting. DEBUG logging can dump graph contents, so watch it with sensitive data.graphviz pkg = thinner wrapper, no parser. pygraphviz = C bindings, painful installs. pydot = pure python, easiest to ship.prompting changes the input. fine-tuning changes the weights. steering changes the model's internal activations at inference time: find the direction for a concept, add it to the residual stream, and the behaviour shifts. no training run, no prompt.
same prompt, two completions: one with the behaviour, one without. "answer honestly" vs "answer sycophantically". keep everything else identical so the difference is just the concept.
run both sides through the model, grab residual-stream activations at a middle layer (roughly 30–60% depth works best), average the differences. PCA on the diffs is the common alternative.
register a forward hook that adds α·v to that layer's output on every token. tune α on a small eval: watch the target metric and a fluency metric at the same time.
import torch from transformers import AutoModelForCausalLM, AutoTokenizer name = "Qwen/Qwen2.5-7B-Instruct" # any llama-style decoder tok = AutoTokenizer.from_pretrained(name) model = AutoModelForCausalLM.from_pretrained(name, torch_dtype=torch.bfloat16, device_map="auto") LAYER = 14 @torch.no_grad() def last_token_act(text): ids = tok(text, return_tensors="pt").to(model.device) hs = model(**ids, output_hidden_states=True).hidden_states return hs[LAYER + 1][0, -1] # [0] is embeddings, so +1 # pairs: list of (positive_text, negative_text) diffs = [last_token_act(p) - last_token_act(n) for p, n in pairs] v = torch.stack(diffs).mean(0) v = v / v.norm() def make_hook(alpha): def hook(module, inp, out): h = out[0] if isinstance(out, tuple) else out h = h + alpha * v.to(h.dtype) return (h,) + out[1:] if isinstance(out, tuple) else h return hook handle = model.model.layers[LAYER].register_forward_hook(make_hook(8.0)) try: out = model.generate(**tok(prompt, return_tensors="pt").to(model.device), max_new_tokens=200) finally: handle.remove() # always unhook, or every later call stays steered
repeng wraps this whole loop in about ten lines.you self-host open weights (vLLM, TGI, local) and want a cheap, tunable behaviour knob. you want to monitor traits, not just filter outputs. you're doing interpretability or safety research.
you're on Claude / GPT / Gemini APIs: no activation access, full stop. you need precise facts or formats: steering shifts tendencies, it doesn't add knowledge. a two-line system prompt already does the job.
vectors are model- and layer-specific, they don't transfer. high α degrades fluency and general capability, so eval both. concepts aren't perfectly linear: you'll steer side effects too. it's a dial, not a guardrail.
most bad RAG answers are retrieval bugs, not model bugs. if the right chunk never reaches the context window, no model can save you. four stages, each with real trade-offs.
split every N tokens with overlap. dumb, fast, predictable. cuts sentences and tables in half.
try paragraph breaks, then lines, then sentences, then words, until it fits. respects natural boundaries. the sane default: 400–800 tokens, 10–15% overlap.
split on the document's own structure: headings, sections, tables, code blocks, slides. Docling / Unstructured / markdown header splitters. keep the heading path as metadata.
embed each sentence, start a new chunk where similarity between neighbours drops. topic-coherent chunks, but uneven sizes and an embedding pass at ingest.
embed small chunks for precise matching, but return their larger parent section to the LLM. precision on search, context on generation. my default for real docs.
prepend an LLM-written line to each chunk saying where it sits ("from the 2026 fees policy, refunds section") before embedding and BM25. Anthropic reported big cuts in failed retrievals, bigger with a reranker.
run the whole document through a long-context embedding model first, then pool token embeddings per chunk. every chunk vector "saw" the full doc, so pronouns and references survive.
an LLM rewrites text into atomic, self-contained facts, or decides the cut points itself. highest quality on dense material, slowest and most expensive ingest.
compare the query to every vector. perfect recall, linear cost. totally fine up to ~100k vectors. don't over-engineer a small corpus.
layered proximity graph, greedy search from the top layer down. the default ANN index in pgvector, Qdrant, Chroma, Weaviate. tune M, ef_construction, ef_search.
cluster vectors (IVF), only search the nearest clusters (nprobe), compress them with product quantization. FAISS / Milvus territory once you're into tens of millions.
store vectors as int8 or binary instead of float32. binary is ~32x smaller. search the cheap version first, rescore the top candidates with full precision.
classic keyword search. catches what embeddings miss: product codes, names, error strings, acronyms. never ship a production RAG without it.
a model expands text into weighted vocabulary terms, then you search it like an inverted index. keyword precision with some synonym awareness.
one vector per token, scored with late interaction (MaxSim). much better at fine-grained matching, much bigger index. ColPali does the same on page images, skipping parsing entirely.
RAPTOR builds a tree of cluster summaries for "what's this whole corpus about" questions. GraphRAG extracts entities + relations for multi-hop questions. also cheap and underrated: index LLM-generated questions per chunk.
from sentence_transformers import CrossEncoder reranker = CrossEncoder("BAAI/bge-reranker-v2-m3") def rrf(rank_lists, k=60): scores = {} for ranks in rank_lists: for pos, doc_id in enumerate(ranks): scores[doc_id] = scores.get(doc_id, 0) + 1 / (k + pos + 1) return sorted(scores, key=scores.get, reverse=True) def retrieve(query, top_n=5): dense = vector_store.search(query, k=50) # ids by cosine sparse = bm25.search(query, k=50) # ids by BM25 candidates = rrf([dense, sparse])[:50] # high recall pairs = [(query, docs[i].text) for i in candidates] scores = reranker.predict(pairs) # joint query+doc scoring ranked = sorted(zip(candidates, scores), key=lambda x: x[1], reverse=True) # drop junk instead of always stuffing top_n return [docs[i] for i, s in ranked[:top_n] if s > 0.2]
a client comes to you with a problem. walk through how to deconstruct any GenAI use case — what to build, what to skip, and why.
PE due diligence is the ideal GenAI use case — structured inputs (PDFs), structured outputs (fixed report template), bounded reasoning, measurable quality. if you understand how this pipeline was built, you can build any enterprise document workflow.
this is the actual architecture of Verdikt — every node is a real agent or processing step. edges show real data flow. click any node to see the exact model, tools, inputs and outputs used in production.
swap "CIM Document" for any domain document. the supervisor → specialist → writer pattern works for legal contracts, medical records, financial filings, procurement docs — any structured document workflow.
PE analysts spend 40–60 hrs per deal manually reading CIM documents, pulling news, checking financials, and writing the same structured due diligence report. the output format never changes. the work is high-volume, repetitive, and rule-driven.
the inputs are structured (PDFs, web data). the output is structured (a fixed report format). the reasoning is bounded — not open-ended creativity. there's domain knowledge that can be encoded. measurable quality. this is the sweet spot.
multi-agent system (Verdikt). supervisor routes to researcher, analyst, writer. full report in ~90 seconds. the same architecture applies to any consulting, legal, or financial document workflow.
everything i actually used to learn and build. all links verified.
| paper | topic | why read it | |
|---|---|---|---|
| foundational | the transformer paper. read this once and everything makes sense. | free | |
| RAG | the original RAG paper. foundational for understanding why retrieval matters. | free | |
| agents | the foundational agentic pattern. backbone of most agent frameworks today. | free | |
| RAG | adds a retrieval evaluator that fixes bad retrievals before generation. major quality boost. | free | |
| fine-tuning | the PEFT paper that changed fine-tuning. inject trainable matrices, freeze everything else. | free | |
| agents + RAG | comprehensive 2025 survey. multi-agent retrieval, adaptive RAG, all current approaches. | free | |
| LLMs | how OpenAI evaluated and aligned GPT-4. useful for understanding RLHF in practice. | free | |
| architecture | mixture of experts architecture. explains how models scale efficiently, and why every big open model is MoE now. | free | |
| reasoning | RL-trained reasoning without a mountain of human labels. explains why every model now "thinks" before answering. | free | |
| long context | models ignore stuff buried mid-context. still the best argument for retrieval + ordering over context stuffing. | free | |
| RAG | model decides when to retrieve and critiques its own output. the idea behind most adaptive RAG graphs. | free | |
| steering | contrastive activation addition. the cleanest intro to steering vectors. | free | |
| chunking | embed the whole doc first, chunk after. chunks keep their context. | free | |
| graph RAG | Microsoft's community-summary approach. read it before bolting a knowledge graph onto your RAG. | free |
| course | type | what you learn | |
|---|---|---|---|
| course | Andrew Ng + OpenAI. best practices, iterative development, summarization, chatbots. start here. | free | |
| course | state machines, tool use, HITL. the most practical agent course available. | free | |
| course | chains, memory, agents. foundation before jumping to LangGraph. | free | |
| course | graph RAG with Neo4j. structured + unstructured retrieval. growing area. | free | |
| course | transformers library from the people who built it. tokenizers, models, fine-tuning. | free | |
| course | Azure OpenAI, responsible AI. good for enterprise / Azure-focused work. | free | |
| course | evals, debugging, experiment tracking. most engineers skip this too long. | free | |
| course | router, tool, multi-document agents. LlamaIndex approach. good complement to LangGraph course. | free | |
| course | reflection, tool use, planning, multi-agent. framework-agnostic, so the patterns stick after the libraries change. | free | |
| course | packaging instructions + scripts as reusable skills. the cleanest way to give agents procedural knowledge. | free | |
| course | agents from first principles with smolagents, LangGraph and LlamaIndex. certificate if you care. | free | |
| course | build and consume MCP servers end to end. do this before writing your own integrations. | free |
| blog / docs | type | why | |
|---|---|---|---|
| blog | definitive survey on agentic systems. read before building any agent. | free | |
| blog | patterns, antipatterns, when NOT to use agents. essential reading. | free | |
| docs | XML tags, CoT, structured outputs. canonical reference for Claude prompting. | free | |
| docs | official tutorials. actually great docs. read them top-to-bottom once. | free | |
| docs | context precision, faithfulness, answer relevancy. learn the eval metrics deeply. | free | |
| docs | LoRA, QLoRA, adapters. canonical fine-tuning reference. consumer hardware friendly. | free | |
| docs | structure-aware document parsing. tables, headings, figures. use this not pypdf. | free | |
| blog | production GenAI on Bedrock. real case studies. good for enterprise patterns. | free | |
| blog | prompt engineering grew up. what goes in the window, what gets compacted, what lives in memory. | free | |
| blog | real orchestrator-worker lessons from production: token budgets, delegation prompts, evals. | free | |
| blog | error analysis first, metrics second. the most practical eval writing out there. | free | |
| blog | the whole year in one read: Fable, GPT-6, open-weight surge, coding agents. best catch-up post. | free | |
| docs | how Jev thinks: Choice, Score, Noul primitives, confidence, when to escalate to a human. | free |
| repo | type | what's inside | |
|---|---|---|---|
| repo | comprehensive agent tutorials from basic to advanced. LangGraph, tools, multi-agent. gold mine. | free | |
| repo | interview prep, research updates, RAG papers table, notebooks. consistently maintained. | free | |
| repo | modular agentic RAG with LangGraph, conversation memory, HITL. cleanest beginner repo. | free | |
| repo | the source. read examples/. agentic RAG, CRAG, adaptive RAG notebooks are essential. | free | |
| repo | pytest for LLMs. LLM-as-judge, hallucination detection, RAG metrics. integrates with CI/CD. | free | |
| repo | minimal GPT-2 in ~300 lines of pytorch. best way to understand LLM internals. | free | |
| repo | every major RAG paper 2023–2025. EMNLP 2025. go here for deep RAG research. | free | |
| repo | alternative to LangChain for data-heavy RAG. better for complex ingestion pipelines. | free | |
| repo | official recipes: tool use, RAG, sub-agents, prompt caching, skills. copy-paste ready. | free | |
| repo | reference MCP servers. read two of these and you can write your own in an afternoon. | free | |
| repo | the default for serving open-weight models. paged attention, batching, OpenAI-compatible API. | free | |
| repo | fastest LoRA / QLoRA fine-tuning on a single GPU. notebooks for basically every open model. | free |
| video / channel | type | what you get | |
|---|---|---|---|
| video | builds GPT-2 from zero. no better way to understand transformers. watch before any framework. | free | |
| video | non-technical intro to LLM capabilities and limitations. best beginner video. | free | |
| video | 3.5 hours: pretraining, SFT, RL, tool use, why models hallucinate. the modern successor to Intro to LLMs. | free | |
| channel | former OpenAI, former Tesla AI. every video is essential. | free | |
| channel | practical LangChain and LangGraph tutorials. best applied agent engineering channel. | free | |
| channel | visual explanations of backprop, attention, transformers. understand the actual math. | free | |
| lecture | Stanford's academic LLM course. architecture, capabilities, harms, social impact. | free |
| tool | type | use it for | |
|---|---|---|---|
| framework | stateful multi-agent orchestration as graphs. best abstraction for complex workflows. | free | |
| framework | role-based multi-agent. agents have roles, goals, backstories. crew-style collaboration. | free | |
| vector db | easiest vector db locally. persistent, Python-native. great for dev and hackathons. | free | |
| framework | async Python APIs. standard for LLM backends. pairs perfectly with LangGraph. | free | |
| eval | pytest for LLMs. LLM-as-judge, RAG metrics, hallucination detection. runs in CI/CD. | free | |
| inference | fast LLaMA inference via LPU chips. free tier is generous. good for hackathons. | free tier | |
| parsing | structure-aware doc parsing. tables, headings, figures. use instead of pypdf. | free | |
| deploy | easiest deploy for FastAPI + LangGraph. github integration, auto-redeploy. what I use. | free tier | |
| decisions | typed routing, gating and labeling at ~100ms. $0.042 per million input tokens, output free. | usage-based | |
| observability | open-source tracing + evals for agents. OpenTelemetry native. what Flightcheck runs on. | free | |
| observability | self-hostable LangSmith alternative. traces, prompt versions, datasets, cost tracking. | free | |
| local LLMs | one command to run Qwen, DeepSeek, Mistral locally. perfect for offline dev and cost-free prototyping. | free | |
| agents | Google Research's self-improving agent harness. edits prompts, skills, tools; keeps only proven changes. | free | |
| viz | pure-python Graphviz DOT. render your LangGraph to SVG for docs and PRs. | free | |
| steering | control vectors for open-weights models in a few lines. easiest way into activation steering. | free | |
| reranker | open multilingual cross-encoder. the default self-hosted reranker. | free | |
| benchmarks | independent quality / speed / price comparisons. check here before trusting a launch blog. | free |
not tutorials. real code, real architecture decisions, real tradeoffs. 13 builds, 21 hackathons, 1 win so far.
Devpost is where hackathons live. free to join, thousands of prizes, and genuinely the fastest way to go from idea → shipped product → portfolio piece in 48–72 hours. almost every project above started as a hackathon submission. the quality bar is lower than you think. just ship.
the ones that actually keep you ahead. all free to subscribe.
the things you forget and google at 2am.
earned through production systems, hackathons, and 2am debugging sessions.
freelance GenAI consulting — RAG, agents, LLM pipelines, architecture reviews.
building production GenAI systems from scratch, reviewing existing architectures, designing eval pipelines, picking the right stack for your use case, or just a call to talk through what you're building.