Terry Chan (@ChanSFxAI) header
Terry Chan (@ChanSFxAI) profile picture

AI & Automation Enthusiast | Proud Dad | Lifelong Learner

Joined April 2009
Photo by Terry Chan (@ChanSFxAI)Photo by Terry Chan (@ChanSFxAI)Photo by Terry Chan (@ChanSFxAI)
BBC Dad content Today is the 7th anniversary of the BBC Dad blooper. So here it is again, with some recent family pictures in the thread below. 1
2,359
23,621
5,502
212,616
32,477,925
Terry Chan retweeted
Neural networks and machine learning, visualized
105
953
64
7,069
471,311
Terry Chan retweeted
Dead internet is no longer just a theory
136
935
125
5,594
1,299,966
Introducing Nano Banana 2, our best image model yet 🍌🍌 It uses Gemini’s understanding of the world and is powered by real-time information and images from web search. That means it can better reflect real-world conditions in high-fidelity. Check out "Window Seat," a demo using Nano Banana 2’s world understanding to generate more accurate views from any window in the world, pulling live local weather info with 2K/4K specs. The precision is mind blowing. Rolling out today as the new default in the @Geminiapp, Search (across 141 countries), and Flow + available in preview via @GoogleAIStudio and Vertex AI. Also available in Google @Antigravity.
478
890
251
9,865
925,148
They say "AI agents are the future." But they're already here. They just need your data. So how do you implement RAG (Retrieval-Augmented Generation)? A simple 9-step process: 1. Extract & preprocess data (e.g., pull text from a PDF). 2. Split text into chunks (based on token limits). 3. Generate embeddings (convert text into vectors). 4. Store in a vector DB & index (with metadata). You can also use document DBs or knowledge graphs for hybrid retrieval. 5. Retrieve: Combine vector and document search, filter before/after retrieval, and reindex from multiple sources. 6. Orchestrate the pipeline: What’s your flow? Define each step. 7. Add LLMs for generation: RAG = retrieval + generation. 8. Log everything: so you can debug and improve later. 9. Evaluate your RAG: this is the hardest part, many skip it. -- Just recently, I showed how to build a RAG chatbot in 45 minutes - no coding: teapawt.net/PawelHuryn/status/1935… The toughest part? Evaluating if it actually works. -- Good news: Top-tier RAG, AI, and evaluation experts are running a free 5-session live Zoom course you can join: Upcoming sessions: 1. Wed, Jun 25 - I don't use RAG, I just retrieve documents: maven.com/p/569540/i-don-t-u… 2. Wed, Jul 2 - Modern Information Retrieval Evaluation In The RAG Era: maven.com/p/fae749/modern-ir… 3. Mon, Jul 7 - Reasoning Opens up New Retrieval Frontiers: maven.com/p/d6c44b/reasoning… 4. Tue, Jul 8 - Going Further: Late Interaction Beats Single Vector Limits: maven.com/p/1973fe/going-fur… 5. Fri, Jul 11 - The Map Is Not The Territory – Highly Multimodal Search: maven.com/p/f9eb59/the-map-i… You'll learn from: @bclavie, @HamelHusain, @sh_reya, @beirmug, @orionweller, @antoine_chaffin, @BEBischof, @loldedxd This might be the best opportunity of 2025 to master RAG. Can’t join live? Recordings, slides, and notes will be sent to those who sign up. Hope that helps! Know someone who’d benefit? Feel free to share it.
It feels like a steal. An average AI or RAG course costs $2-3K. And an AI Engineer at Microsoft earns $375,000 But now, some of the top RAG and AI experts are running a 5-session live Zoom masterclass and anyone can join for free. Upcoming sessions: 1. Wed, Jun 25 - I don't use RAG, I just retrieve documents: maven.com/p/569540/i-don-t-u… 2. Wed, Jul 2 - Modern Information Retrieval Evaluation In The RAG Era: maven.com/p/fae749/modern-ir… 3. Mon, Jul 7 - Reasoning Opens up New Retrieval Frontiers: maven.com/p/d6c44b/reasoning… 4. Tue, Jul 8 - Going Further: Late Interaction Beats Single Vector Limits: maven.com/p/1973fe/going-fur… 5. Fri, Jul 11 - The Map Is Not The Territory – Highly Multimodal Search: maven.com/p/f9eb59/the-map-i… You'll learn from: @bclavie – R&D ML Engineer at AnswerAI @HamelHusain – ML Engineer with 20+ years of experience @sh_reya – ML Systems Researcher focused on AI evaluation @beirmug – RAG researcher, creator of BEIR and MIRACL benchmarks @orionweller – RAG and Information Retrieval researcher at Johns Hopkins @antoine_chaffin - R&D Machine Learning Engineer at LightOnIO @BEBischof – Head of AI at Theory Ventures @loldedxd - Founding ML Engineer, LanceDB Most companies still don’t understand what AI evals really are. And the gap between average and best AI teams keeps growing. This might be the best opportunity of 2025. Can’t join live? Recordings, slides, and notes will be sent to those who sign up. — Hope that helps! Do you know someone who can benefit from it, too? *Windows Central, August 2024, US
2
5
25
2,846
Build real-world data pipelines end‑to‑end. Academically structured and industry‑ready in just 9 weeks.
9
216
2
1,484
121,715
The Power of 1%:
17
887
9
5,437
543,563
AI Agents vs. Agentic AI → AI Agents react to prompts; Agentic AI initiates and coordinates tasks. → Agentic AI includes orchestrators and meta-agents to assign and oversee sub-agents. 🧵1/n 🧠 The Core Concepts AI Agents and Agentic AI are often confused as interchangeable, but they represent different stages of autonomy and architectural complexity. AI Agents are single-entity systems driven by large language models (LLMs). They are designed for task-specific execution: retrieving data, calling APIs, automating customer support, filtering emails, or summarizing documents. These agents use tools and perform reasoning through prompt chaining, but operate in isolation and react only when prompted. Agentic AI refers to systems composed of multiple interacting agents, each responsible for a sub-task. These systems include orchestration, memory sharing, role assignments, and coordination. Instead of one model handling everything, there are planners, retrievers, and evaluators communicating to achieve a shared goal. They exhibit persistent memory, adaptive planning, and multi-agent collaboration. 🏗️ Architectural Breakdown AI Agents: Structured as a single model using LLMs. Equipped with external tools. Operates through a cycle of perception, reasoning, and action. Executes one task at a time with limited context continuity. Agentic AI: Uses multiple LLM-driven agents. Supports task decomposition, role-based orchestration, and contextual memory sharing. Agents communicate via queues or buffers and learn from feedback across sessions. 🔧 How AI Agents Work An AI Agent typically receives a user prompt, chooses the correct tool (e.g., search engine, database query), gets results, and then generates an output. It loops this with internal reasoning until the task is completed. Frameworks like LangChain and AutoGPT are built on this structure. 🤖 What Agentic AI Adds Agentic AI introduces: - Goal decomposition: breaking tasks into subtasks handled by specialized agents. - Orchestration: a meta-agent (like a CEO) delegates and integrates. - Memory systems: episodic, semantic, or vector-based for long-term context. - Dynamic adaptation: agents can replan or reassign tasks based on outcomes. Examples include CrewAI or AutoGen pipelines, where agents draft research papers or coordinate robots.
46
224
14
1,074
103,756
How to start learning ai Agents!
29
589
7
3,879
384,955
Terry Chan retweeted
Different API Architecture Styles
4
125
785
63,615
7 Quick Knowledge Nuggets for System Design Interviews 1. Distributed Transactions Sometimes, one request updates data in many places. Either all updates must succeed, or if any part fails, all changes are rolled back to maintain consistency. You can achieve eventual consistency using Sagas or strong consistency via two-phase commit (2PC); although the latter is rare in modern systems due to its complexity and blocking behavior. 2. Event Sourcing Instead of saving the latest state, save every action (event) that happened. To get the current state, replay the events. It’s like a detailed history log. 3. Change Data Capture (CDC) When something changes in the database, CDC sends those changes as events. Other systems can listen and react, like syncing another database or updating a search index. 4. Sagas When a big task is split across many services, Sagas help make sure either all steps finish or we undo the ones that did. It’s a safer way to handle multi-step work. 5. Choreography vs Orchestration • Choreography: Each service knows when to act, based on events. No central boss. • Orchestration: One service tells others what to do and when. More control, easier to track. 6. CAP Theorem CAP theorem says a distributed system can only guarantee two out of three: consistency, availability, and partition tolerance. 7. Distributed Cache Keep copies of frequently used data on multiple servers close to where it’s needed. This avoids slow database calls, reduces network hops, and improves speed at scale. Add more 👇
4
57
319
19,950
Terry Chan retweeted
What is CI/CD
9
197
3
1,232
116,242
Terry Chan retweeted
System design interview cheat sheet
5
209
3
1,340
147,439
Terry Chan retweeted
SOAP vs REST vs GraphQL vs RPC
11
174
4
967
68,695
Top 7 Sites to Learn System Design 1. ByteByteGo - bit.ly/3P3eqMN 2.DesignGuru - bit.ly/3pMiO8g 3. Educative - bit.ly/3Mnh6UR 4. Udemy - bit.ly/3vFNPid 5. Exponent - bit.ly/3cNF0vw 6. ZTM - bit.ly/3zEPZ3j
1
74
1
377
27,498
I dreaded negotiations early in my career… Then I learned:
13
389
6
2,123
434,087
Terry Chan retweeted
Top 20 System Design Concepts You Should Know
11
180
3
1,213
150,476
Here is how you break down 𝗔𝗜 𝗔𝗴𝗲𝗻𝘁 𝗠𝗲𝗺𝗼𝗿𝘆 👇 In general, the memory for an agent is something that we provide via context in the prompt passed to LLM that helps the agent to better plan and react given past interactions or data not immediately available. It is useful to group the memory into four types: 𝟭. Episodic - This type of memory contains past interactions and actions performed by the agent. After an action is taken, the application controlling the agent would store the action in some kind of persistent storage so that it can be retrieved later if needed. A good example would be using a vector Database to store semantic meaning of the interactions. 𝟮. Semantic - Any external information that is available to the agent and any knowledge the agent should have about itself. You can think of this as a context similar to one used in RAG applications. It can be internal knowledge only available to the agent or a grounding context to isolate part of the internet scale data for more accurate answers. 𝟯. Procedural - This is systemic information like the structure of the System Prompt, available tools, guardrails etc. It will usually be stored in Git, Prompt and Tool Registries. 𝟰. Occasionally, the agent application would pull information from long-term memory and store it locally if it is needed for the task at hand. 𝟱. All of the information pulled together from the long-term or stored in local memory is called short-term or working memory. Compiling all of it into a prompt will produce the prompt to be passed to the LLM and it will provide further actions to be taken by the system. We usually label 1. - 3. as Long-Term memory and 5. as Short-Term memory. A visual explanation of potential implementation details 👇 And that is it! The rest is all about how you architect the topology of your Agentic Systems. What are your thoughts about memory in AI Agents? #LLM #AI #MachineLearning
15
146
7
510
33,056
Client acquisition wheel for startup founders 🎡
24
92
10
941
145,976
#MachineLearning Systems — Principles and Practices of Engineering Artificially Intelligent Systems: mlsysbook.ai by @profvjreddi [download 1660-page PDF] “open-source textbook focuses on how to design and implement #AI systems effectively” ——— #ML #MLOps #DataScience
8
222
6
947
45,995