This is an old revision of the document!
Table of Contents
AI CMS / Framework / Model
Tổng quan
Có. Trong AI cũng tồn tại khái niệm tương đương CMS / Framework / Library giống lập trình truyền thống, nhưng được chia thành nhiều tầng đóng gói khác nhau.
Mục tiêu trang này: Giải thích AI theo đúng tư duy OpenCart / Laravel / SDK để dev hiểu ngay. What it is: Trong AI, cũng tồn tại khái niệm tương đương CMS / Framework / Library giống lập trình truyền thống.
Key idea: AI không phải một khối duy nhất, mà được chia thành nhiều tầng đóng gói, từ “lấy về dùng ngay” đến “tự build từ lõi”.
—
1) Mapping trực tiếp: Lập trình truyền thống ↔ AI
| Traditional Programming | AI Equivalent | Meaning |
|---|---|---|
| CMS (OpenCart, WordPress) | AI CMS / Prebuilt AI App | Dùng ngay |
| Framework (Laravel, Django) | AI Framework / LLM Framework | Build AI app |
| Library / SDK | Model / Inference Library | Ghép từng phần |
| Custom low-level code | Train model from scratch | Đắt & hiếm |
—
2) Tầng AI CMS – Dùng ngay (No-code / Low-code)
What it is: Ứng dụng AI đã đóng gói sẵn UI + workflow + model integration.
Equivalent: OpenCart / WordPress
Examples
* AnythingLLM](https://anythingllm.com|AnythingLLM)
* Flowise](https://flowiseai.com|Flowise)
* Open](https://openwebui.com|Open) WebUI
Key Characteristics
* Có sẵn UI * Workflow dựng bằng form / node * Config bằng YAML / JSON * Gắn LLM là chạy
Use When
* Internal chatbot * Knowledge assistant * PoC nhanh * Team không có ML skill
Limitations
* Khó custom sâu * Performance không tối ưu * Governance yếu nếu không chỉnh
👉 Đây là AI CMS đúng nghĩa.
—
3) Tầng AI Framework – Giống Laravel / Django
What it is: Framework để lập trình ứng dụng AI bằng code.
Equivalent: Laravel / Django
Popular Frameworks
* LangChain](https://www.langchain.com|LangChain) ⭐
* LlamaIndex](https://www.llamaindex.ai|LlamaIndex)
* Haystack](https://haystack.deepset.ai|Haystack)
* Semantic](https://learn.microsoft.com/semantic-kernel|Semantic) Kernel
What They Do
* Prompt management * RAG (Retrieval Augmented Generation) * Tool calling * Memory & agent flow
Mapping
* Laravel ≈ LangChain * Django ≈ LlamaIndex
Use When
* Build AI product thực sự * Có backend team * Cần kiểm soát flow & test
—
4) Tầng Pretrained Model – Model train sẵn
What it is: Model AI đã được train sẵn trên dữ liệu lớn.
Equivalent: Database engine / Search engine
Examples
* LLaMA](https://ai.meta.com/llama|LLaMA) / LLaMA 3
* Mistral](https://mistral.ai|Mistral) / Mixtral
* Qwen](https://huggingface.co/Qwen|Qwen)
Characteristics
* Không có UI * Không có workflow * Có thể self-host * Có thể fine-tune
🚫 Không phải CMS – chỉ là “bộ não”.
—
5) Tầng AI Inference Engine
What it is: Runtime để chạy model hiệu quả.
Equivalent: JVM / PHP runtime / DB engine core
Examples
* vLLM](https://github.com/vllm-project/vllm|vLLM)
* llama.cpp](https://github.com/ggerganov/llama.cpp|llama.cpp)
* TensorRT-LLM](https://developer.nvidia.com/tensorrt-llm|TensorRT-LLM)
* TGI](https://github.com/huggingface/text-generation-inference|TGI)
Use When
* High throughput * Tối ưu cost * On-prem / air-gapped
—
6) Tầng Managed AI Platform (AI SaaS)
What it is: Nền tảng AI được vận hành hoàn toàn bởi vendor.
Equivalent: Shopify / Salesforce
Examples
* OpenAI](https://openai.com|OpenAI) / Azure OpenAI
* AWS](https://aws.amazon.com/bedrock|AWS) Bedrock
* Google](https://cloud.google.com/vertex-ai|Google) Vertex AI
Pros / Cons
* ✅ Nhanh, không lo infra * ❌ Chi phí cao, lock-in
—
7) Sơ đồ tổng thể các tầng
AI CMS (No-code) │ Flowise / AnythingLLM │ AI Framework (Code) │ LangChain / LlamaIndex │ Pretrained Model │ LLaMA / Mistral │ Inference Engine │ vLLM / llama.cpp │ Infrastructure │ Cloud / On-prem GPU
—
8) Chọn gì trong thực tế?
* “Giống OpenCart, kéo về chạy” → AnythingLLM / Flowise * “Giống Laravel” → LangChain / LlamaIndex * “Enterprise, kiểm soát data” → Open-source model + vLLM + RAG
—
9) Sự thật quan trọng
⚠️ AI ≠ CMS truyền thống
* AI không deterministic * Output không đảm bảo đúng * Luôn cần guardrail + evaluation
👉 AI CMS không bao giờ là “cài xong là chạy”, luôn cần con người kiểm soát.
