Simulasi interaktifInteractive simulation
Peta Ekosistem AI Moden: Panduan Interaktif kepada LLM, RAG, Ejen, MCP dan KeselamatanThe Modern AI Ecosystem Map: An Interactive Guide to LLMs, RAG, Agents, MCP and Security
Kenali sebelas lapisan timbunan AI moden, dari LLM dan RAG hingga ejen, MCP, keselamatan dan pemerhatian, melalui peta dan simulasi interaktif dalam dua bahasa.Learn the eleven layers of the modern AI stack, from LLMs and RAG to agents, MCP, security and observability, through an interactive map and simulations in two languages.
Anda mungkin pernah nampak infografik "The Modern AI Ecosystem – Tools": sebelas bulatan berwarna, setiap satu bercabang kepada deretan logo. Cantik, tetapi ia menimbulkan soalan: apa beza RAG dengan pangkalan data vektor? Mengapa MCP ada barisnya sendiri? Perlukah semua ini dipasang serentak? Artikel ini menukar peta itu kepada panduan yang boleh dimainkan. Klik, gerakkan dan cuba, dan anda akan faham kerja setiap lapisan dalam timbunan AI moden.You have probably seen the "The Modern AI Ecosystem – Tools" infographic: eleven coloured circles, each branching into a row of logos. It looks great, but it raises questions. What is the difference between RAG and a vector database? Why does MCP get its own row? Do you need all of this at once? This article turns that map into a guide you can play with. Click, drag and try, and you will see what each layer does in a modern AI stack.
- 1 Peta ekosistemEcosystem map
- 2 RAG
- 3 Embedding dan vektorEmbeddings and vectors
- 4 Ejen, memori, MCPAgents, memory, MCP
- 5 Keselamatan dan pemerhatianSecurity and observability
- 6 AutomasiAutomation
- 7 Bina stack andaBuild your stack
Cara membaca peta iniHow to read this map
Infografik itu menyusun alat mengikut tugas, bukan mengikut syarikat. Satu logo boleh muncul di beberapa baris: Chroma ialah pangkalan data vektor dan juga stor memori, manakala PostgreSQL dan Redis muncul sebagai memori dan pangkalan data vektor. Itu bukan kesilapan. Ia menunjukkan bahawa lapisan AI banyak meminjam infrastruktur yang sudah wujud. Perhatikan juga bahawa satu baris mencampurkan jenis yang berbeza: dalam baris LLM ada model berbayar (GPT, Claude, Gemini), model berat terbuka (Llama, Mistral), hab model (Hugging Face) dan enjin penyajian (Ollama, vLLM).The infographic groups tools by job, not by company. One logo can appear in several rows: Chroma is both a vector database and a memory store, while PostgreSQL and Redis show up as memory and as vector databases. That is not a mistake. It shows that the AI layer borrows heavily from infrastructure that already exists. Note too that a single row mixes different kinds of things: the LLM row holds paid models (GPT, Claude, Gemini), open-weight models (Llama, Mistral), a model hub (Hugging Face) and serving engines (Ollama, vLLM).
Nota: infografik ialah gambaran pada satu masa. Bidang ini bergerak pantas, jadi saya semak beberapa perkara terkini dan menandakannya di bawah. Logo digunakan hanya untuk mengenal pasti setiap alat dan milik pemilik masing-masing. Alat yang tiada logo awam diberi petak singkatan.Note: an infographic is a snapshot in time. The field moves fast, so I checked a few current facts and flag them below. Logos are used only to identify each tool and belong to their respective owners. Tools without a public logo get an initials tile.
Peta ekosistem interaktifInteractive ecosystem map
Pilih satu lapisan. Setiap alat diberi label jenis supaya anda nampak apa yang dibandingkan.Pick a layer. Every tool carries a type label so you can see what is being compared.
Senarai alat mengikut infografik asal. Label jenis ialah pengelasan ringkas saya, bukan klasifikasi rasmi. Ikon daripada pustaka sumber terbuka LobeHub Icons dan Simple Icons; tanda dagangan milik pemilik masing-masing.Tool lists follow the original infographic. Type labels are my own simple classification, not an official one. Icons from the open-source LobeHub Icons and Simple Icons libraries; trademarks belong to their respective owners.
RAG: beri model akses kepada pengetahuan andaRAG: giving the model access to your knowledge
LLM hanya tahu apa yang ada dalam latihannya. Retrieval-Augmented Generation (RAG) menyelesaikannya dengan mengambil petikan berkaitan daripada dokumen anda, lalu menyelitkannya dalam gesaan sebelum model menjawab. Aliran biasa ialah: ingest, pecah kepada ketulan (chunk), embed, indeks, ambil semula, susun semula (rerank), bina gesaan, jana jawapan. Ketulan biasanya beberapa ratus hingga sekitar seribu token, dengan pertindihan supaya konteks tidak terputus.An LLM only knows what was in its training. Retrieval-Augmented Generation (RAG) fixes that by fetching relevant passages from your documents and placing them in the prompt before the model answers. The usual flow is: ingest, split into chunks, embed, index, retrieve, rerank, build the prompt, generate. Chunks are typically a few hundred to about a thousand tokens, with overlap so context is not cut off.
Jejak satu soalan melalui saluran RAGFollow one question through the RAG pipeline
Skor ialah ilustrasi untuk pengajaran, bukan hasil pengukuran. Alat yang biasa digunakan: Unstructured (penghuraian dokumen), LangChain, LlamaIndex, Haystack (saluran), DSPy (pengoptimuman gesaan), GraphRAG (graf pengetahuan).Scores are illustrative for teaching, not measured results. Commonly used tools: Unstructured (document parsing), LangChain, LlamaIndex, Haystack (pipelines), DSPy (prompt optimisation), GraphRAG (knowledge graph).
GraphRAG membina graf pengetahuan (entiti sebagai nod, hubungan sebagai tepi) supaya soalan yang luas seperti "apakah tema utama dalam koleksi ini?" boleh dijawab, bukan sekadar mencantumkan ketulan yang terpisah.GraphRAG builds a knowledge graph (entities as nodes, relationships as edges) so broad questions such as "what are the main themes in this collection?" can be answered, instead of just stitching together isolated chunks.
Embedding dan pangkalan data vektorEmbeddings and vector databases
Embedding menukar teks kepada senarai nombor (vektor) supaya makna yang hampir menjadi titik yang hampir. Pangkalan data vektor menyimpan vektor itu dan mencari jiran terdekat dengan pantas. Untuk embedding, pilihan biasa ialah model berbayar (OpenAI, Cohere, Voyage AI, Google Vertex, Azure OpenAI) atau model terbuka yang boleh dihoskan sendiri (BGE, Sentence Transformers). BGE-M3 sering disebut sebagai pilihan terbuka yang kukuh. Berhati-hati dengan papan markah MTEB: ia teks sahaja, dan ada pengulas yang menegur model terbuka tertentu seolah-olah dilaras untuk penanda aras itu. Ujilah pada data anda sendiri, terutamanya jika dokumen anda dalam Bahasa Melayu.Embeddings turn text into a list of numbers (a vector) so that similar meanings become nearby points. A vector database stores those vectors and finds nearest neighbours quickly. For embeddings the usual choices are paid models (OpenAI, Cohere, Voyage AI, Google Vertex, Azure OpenAI) or open models you can host yourself (BGE, Sentence Transformers). BGE-M3 is often named as a strong open option. Be careful with the MTEB leaderboard: it covers text only, and some reviewers warn that certain open models seem tuned to that benchmark. Test on your own data, especially if your documents are in Bahasa Melayu.
Pemilih pangkalan data vektorVector database picker
Jawab empat soalan. Cadangan mengikut peraturan praktikal yang disebut dalam perbandingan umum, bukan penanda aras.Answer four questions. The suggestion follows rules of thumb from public comparisons, not benchmarks.
Angka penanda aras dalam perbandingan awam saling bercanggah (contohnya latensi Pinecone berbeza antara sumber), jadi ujilah pada data anda. Harga dan ciri berubah kerap.Benchmark figures in public comparisons contradict each other (for example Pinecone latency differs between sources), so test on your own data. Pricing and features change often.
Ejen, memori dan MCPAgents, memory and MCP
Chatbot menjawab; ejen (agent) bertindak. Ejen berputar dalam gelung: fikir, pilih alat, jalankan, perhatikan hasil, kemas kini keadaan, ulang sehingga matlamat tercapai. Dua baris infografik, "Agentic AI" dan "AI Agent", sebenarnya dua peringkat: yang pertama ialah rangka kerja untuk mengatur banyak ejen dan aliran kerja (LangGraph, CrewAI, LlamaIndex Workflows, Agno, CAMEL, AWS Strands), yang kedua ialah SDK untuk membina satu ejen pada platform tertentu (OpenAI Agents SDK, Google ADK, PydanticAI, Semantic Kernel, Bedrock Agents, Azure AI Foundry).A chatbot answers; an agent acts. An agent runs a loop: think, pick a tool, run it, observe the result, update state, repeat until the goal is met. The infographic's two rows, "Agentic AI" and "AI Agent", are really two levels: the first holds frameworks for orchestrating many agents and workflows (LangGraph, CrewAI, LlamaIndex Workflows, Agno, CAMEL, AWS Strands), the second holds SDKs for building a single agent on a given platform (OpenAI Agents SDK, Google ADK, PydanticAI, Semantic Kernel, Bedrock Agents, Azure AI Foundry).
Kemas kini penting: AutoGen dalam infografik kini dilaporkan digantikan oleh Microsoft Agent Framework, yang menggabungkan corak berbilang ejen AutoGen dengan ciri perusahaan Semantic Kernel. Satu sumber menyebut ia mencapai v1.0 pada 3 April 2026. Rangka kerja yang sama (AG2) masih wujud sebagai cabang komuniti. Anggap tutorial lama yang mengesyorkan AutoGen untuk projek perusahaan baharu sebagai ketinggalan zaman.Important update: AutoGen in the infographic is now reported to be succeeded by the Microsoft Agent Framework, which merges AutoGen's multi-agent patterns with Semantic Kernel's enterprise features. One source says it reached v1.0 on 3 April 2026. The community fork AG2 still exists. Treat older tutorials recommending AutoGen for new enterprise projects as outdated.
Gelung ejenThe agent loop
Memori ada dua jenis. Memori jangka pendek ialah tetingkap perbualan semasa dan hilang apabila sesi tamat. Memori jangka panjang ialah stor kekal yang menyimpan fakta merentas sesi. Mem0 mengekstrak fakta ringkas daripada perbualan; Zep membina graf yang sedar masa; Letta (dahulu MemGPT) ialah runtime ejen penuh dengan tahap memori teras, ingatan dan arkib, jadi anda perlu menerimanya sebagai runtime. LangGraph menyediakan keadaan dan antara muka stor. PostgreSQL, Redis, Neo4j dan Chroma muncul sebagai stor di bawahnya.Memory comes in two kinds. Short-term memory is the current conversation window and disappears when the session ends. Long-term memory is a persistent store holding facts across sessions. Mem0 extracts short facts from conversations; Zep builds a time-aware graph; Letta (formerly MemGPT) is a full agent runtime with core, recall and archival memory tiers, so you must adopt it as your runtime. LangGraph provides state and a store interface. PostgreSQL, Redis, Neo4j and Chroma appear as the stores underneath.
MCP (Model Context Protocol) ialah piawaian terbuka untuk menyambung model kepada alat dan data. Tanpa piawaian, setiap aplikasi AI perlu menulis penyambung sendiri untuk setiap alat. Dengan MCP, setiap aplikasi dan setiap alat hanya perlu satu sambungan. Pada Disember 2025 Anthropic menderma MCP kepada Agentic AI Foundation di bawah Linux Foundation, ditubuhkan bersama Block dan OpenAI dengan sokongan Google, Microsoft, AWS, Cloudflare dan Bloomberg. Linux Foundation melaporkan lebih 10,000 pelayan MCP diterbitkan, dan Claude, ChatGPT, Gemini, Cursor, VS Code serta Microsoft Copilot menyokongnya. Keputusan teknikal kekal pada penyelenggara melalui proses cadangan komuniti.MCP (Model Context Protocol) is an open standard for connecting models to tools and data. Without a standard, every AI app writes its own connector for every tool. With MCP, each app and each tool needs just one connection. In December 2025 Anthropic donated MCP to the Agentic AI Foundation under the Linux Foundation, co-founded with Block and OpenAI and backed by Google, Microsoft, AWS, Cloudflare and Bloomberg. The Linux Foundation reports more than 10,000 published MCP servers, and Claude, ChatGPT, Gemini, Cursor, VS Code and Microsoft Copilot support it. Technical decisions remain with the maintainers through a community proposal process.
Mengapa MCP: M × N lawan M + NWhy MCP: M × N versus M + N
Pengiraan konsep: ia mengandaikan setiap aplikasi mahu setiap alat. Dalam praktik, bilangan sebenar lebih rendah, tetapi bentuk pertumbuhannya sama.Conceptual arithmetic: it assumes every app wants every tool. In practice the real count is lower, but the growth shape is the same.
Keselamatan dan pemerhatianSecurity and observability
Sistem AI membawa risiko baharu. Dalam senarai OWASP Top 10 untuk Aplikasi LLM 2025, suntikan gesaan (prompt injection) di tempat pertama dan pendedahan maklumat sensitif di tempat kedua; agensi berlebihan (LLM06) dan kelemahan vektor/embedding (LLM08) juga berkait dengan lapisan pagar keselamatan. Alat dalam baris "AI Security" memainkan peranan berbeza: NeMo Guardrails (NVIDIA, sumber terbuka) mengatur dasar dialog; Guardrails AI mengesahkan keluaran; Microsoft Presidio mengesan dan menyunting data peribadi (PII); Lakera Guard ialah perkhidmatan terurus untuk suntikan gesaan dan kebocoran data; Azure AI Content Safety ada Prompt Shields untuk serangan langsung dan tidak langsung; AWS Bedrock Guardrails ialah pagar terurus dalam Bedrock. Pilihan awan terikat pada penyedia itu, jadi persediaan berbilang awan biasanya menambah satu lapisan lain. Banyak panduan mengesyorkan melapis: Presidio untuk PII, pengesan suntikan, dan pengelas keluaran.AI systems bring new risks. In the OWASP Top 10 for LLM Applications 2025, prompt injection ranks first and sensitive information disclosure second; excessive agency (LLM06) and vector/embedding weaknesses (LLM08) also relate to the guardrail layer. The tools in the "AI Security" row play different roles: NeMo Guardrails (NVIDIA, open source) programs dialogue policy; Guardrails AI validates outputs; Microsoft Presidio detects and redacts personal data (PII); Lakera Guard is a managed service for prompt injection and data leakage; Azure AI Content Safety offers Prompt Shields for direct and indirect attacks; AWS Bedrock Guardrails is the managed guardrail inside Bedrock. Cloud options tie you to that provider, so multi-cloud setups usually add another layer. Many guides recommend layering: Presidio for PII, an injection detector and an output classifier.
Siapa yang menahan serangan?Who stops the attack?
Senario ialah contoh pengajaran. Tiada pagar keselamatan menahan semua serangan; lapis beberapa kawalan dan kekalkan semakan manusia untuk tindakan berisiko.Scenarios are teaching examples. No guardrail stops every attack; layer several controls and keep human review for risky actions.
Selepas itu, pemerhatian (observability) memberitahu anda apa yang sebenarnya berlaku. Ia menjejak setiap panggilan model, kos token, latensi dan kualiti. LangSmith rapat dengan LangChain (SDK terbuka, bahagian belakang komersial); Langfuse (MIT) dan Arize Phoenix (Elastic v2, berasaskan OpenTelemetry) boleh dihoskan sendiri; W&B Weave berguna untuk penjejakan regresi; Helicone berfungsi seperti get laluan dengan penghalaan, cache dan penjejakan kos. Ragas dan TruLens ialah rangka penilaian (contohnya kesetiaan jawapan kepada sumber), manakala Promptfoo menguji gesaan dan serangan. Nota: Weights & Biases diambil alih CoreWeave pada Mac 2025.After that, observability tells you what is really happening. It traces every model call, token cost, latency and quality. LangSmith is closely tied to LangChain (open SDK, commercial backend); Langfuse (MIT) and Arize Phoenix (Elastic v2, OpenTelemetry-based) can be self-hosted; W&B Weave helps with regression tracking; Helicone works like a gateway with routing, caching and cost tracking. Ragas and TruLens are evaluation frameworks (for example, how faithful an answer is to its sources), while Promptfoo tests prompts and attacks. Note: Weights & Biases was acquired by CoreWeave in March 2025.
Automasi: visual atau tahan lasak?Automation: visual or durable?
Baris "Automation" mencampurkan dua dunia. Zapier, Make dan n8n ialah penyunting visual untuk menyambung aplikasi dengan cepat, sesuai untuk operasi harian. Airflow, Prefect dan Kestra mengatur saluran data dan kerja kelompok. Temporal ialah enjin pelaksanaan tahan lasak: aliran kerja ditulis dalam kod dan terus hidup walaupun proses atau pelayan terhenti. Untuk ejen AI yang berjalan lama, ciri ini penting kerana kegagalan di tengah jalan tidak membuang kemajuan.The "Automation" row mixes two worlds. Zapier, Make and n8n are visual editors for wiring apps together quickly, suited to everyday operations. Airflow, Prefect and Kestra orchestrate data pipelines and batch jobs. Temporal is a durable execution engine: workflows are written in code and keep running through process or server failures. For long-running AI agents this matters, because a mid-flight failure does not throw away progress.
Padankan alat dengan keadaanMatch the tool to the situation
Penerangan ketahanan Prefect, Kestra dan Pipedream datang daripada sumber nipis; semak dokumentasi rasmi. Beberapa perbandingan n8n ditulis oleh pesaing.Durability descriptions for Prefect, Kestra and Pipedream come from thin sources; check official docs. Some n8n comparisons are written by competitors.
Satu hal penting: LLM yang mana, dijalankan di mana?One more thing: which LLM, running where?
Baris LLM juga memisahkan model daripada cara menjalankannya. Ollama dan vLLM bukan model; ia enjin yang menjalankan model berat terbuka. Ollama membalut llama.cpp dan mudah untuk kegunaan setempat. vLLM menggunakan PagedAttention (pengurusan cache KV dalam blok) dan continuous batching untuk melayan ramai pengguna serentak. Satu penanda aras Hostinger melaporkan vLLM kira-kira 34 kali lebih tinggi daripada Ollama pada lapan permintaan serentak, tetapi hasil berbeza mengikut perkakasan dan versi; pada seorang pengguna, keduanya setanding. Panduan ringkas: Ollama untuk membangun dan guna sendiri, vLLM apabila beberapa pengguna atau perkhidmatan menggunakan pelayan serentak.The LLM row also separates the model from how you run it. Ollama and vLLM are not models; they are engines that run open-weight models. Ollama wraps llama.cpp and is easy for local use. vLLM uses PagedAttention (KV-cache management in blocks) and continuous batching to serve many users at once. One Hostinger benchmark reported vLLM at roughly 34 times Ollama's throughput at eight concurrent requests, but results vary with hardware and version; with a single user the two are comparable. Rule of thumb: Ollama for development and personal use, vLLM when several users or services hit the server at once.
Bina stack andaBuild your stack
Anda tidak perlu sebelas lapisan. Pilih satu senario dan lihat lapisan mana yang perlu dahulu.You do not need all eleven layers. Pick a scenario and see which layers come first.
Stack minimum mengikut senarioMinimum stack by scenario
Cadangan ialah pandangan praktikal saya untuk bermula, bukan satu-satunya jalan. Nama alat ialah contoh.These suggestions are my practical starting view, not the only route. Tool names are examples.
KesimpulanConclusion
Peta itu mudah difahami apabila anda ingat satu ayat: model berfikir, data memberi konteks, ejen bertindak, MCP menyambung, pagar melindungi, pemerhatian membuktikan. Mulakan dengan LLM dan satu kes penggunaan yang kecil, tambah RAG apabila model perlu tahu data anda, tambah ejen apabila ia perlu bertindak, dan hanya kemudian tambah memori, automasi dan keselamatan lanjutan mengikut keperluan. Alat akan bertukar (AutoGen sudah digantikan), tetapi lapisan dan soalan yang perlu ditanya kekal.The map is easy once you remember one sentence: models think, data gives context, agents act, MCP connects, guardrails protect, observability proves. Start with an LLM and one small use case, add RAG when the model must know your data, add agents when it must act, and only then add memory, automation and advanced security as needed. Tools will change (AutoGen has already been succeeded), but the layers and the questions to ask stay the same.
RujukanReferences
- Linux Foundation: Formation of the Agentic AI Foundation
- Model Context Protocol blog: MCP joins the Agentic AI Foundation
- GitHub Blog: MCP joins the Linux Foundation
- Red Hat: vLLM vs. Ollama
- Hostinger: agentic AI frameworks
- DEV Community: AI agent memory tools compared
- Machine Learning Mastery: agent memory frameworks
- BigData Boutique: vector database comparison
- Firecrawl: LLM observability tools
- BigData Boutique: AI guardrails in production
- n8n blog: alternatives (vendor-written)
- arXiv: Systematic literature review of RAG
Kebanyakan rujukan ialah blog dan panduan perbandingan, bukan dokumentasi rasmi. Semak laman rasmi setiap projek sebelum membuat keputusan.Most references are blogs and comparison guides rather than official documentation. Check each project's official site before deciding.

