User Tools

Site Tools


ai:ai-open-sources

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ai:ai-open-sources [2026/01/22 09:32] phong2018ai:ai-open-sources [2026/02/17 20:38] (current) phong2018
Line 1: Line 1:
 ====== AI CMS / Framework / Model ====== ====== AI CMS / Framework / Model ======
  
-===== Tổng quan =====+===== Overview =====
  
-**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ốngnhưng được chia thành **nhiều tầng đóng gói** khác nhau.+YesIn AI, there are equivalent concepts to CMS / Framework / Library similar to traditional programmingbut they are divided into multiple packaging layers.
  
-**Mục tiêu trang này:** Giải thích AI theo đúng tư duy **OpenCart / Laravel / SDK** để dev hiểu ngay+Goal of this pageExplain AI using the mindset of OpenCart / Laravel / SDK so developers can understand it immediately
-**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.+What it is: In AI, there are also equivalent concepts to CMS / Framework / Library similar to traditional programming.
  
-**Key idea:** AI không phải một khối duy nhấtmà được chia thành **nhiều tầng đóng gói**từ "lấy về dùng ngay" đến "tự build từ lõi".+Key idea: AI is not a single blockbut is divided into multiple packaging layersfrom “ready to use” to “build from the core.
  
---- +===== 1) Direct Mapping: Traditional Programming ↔ AI =====
- +
-===== 1) Mapping trực tiếpLập trình truyền thống ↔ AI =====+
 ^ Traditional Programming ^ AI Equivalent ^ Meaning ^ ^ Traditional Programming ^ AI Equivalent ^ Meaning ^
-| CMS (OpenCart, WordPress) | AI CMS / Prebuilt AI App | Dùng ngay |+| CMS (OpenCart, WordPress) | AI CMS / Prebuilt AI App | Ready to use |
 | Framework (Laravel, Django) | AI Framework / LLM Framework | Build AI app | | Framework (Laravel, Django) | AI Framework / LLM Framework | Build AI app |
-| Library / SDK | Model / Inference Library | Ghép từng phần +| Library / SDK | Model / Inference Library | Assemble components 
-| Custom low-level code | Train model from scratch | Đắt hiếm |+| Custom low-level code | Train model from scratch | Expensive rare |
  
----+===== 2) AI CMS Layer – Ready to Use (No-code / Low-code) ===== 
 +What it is: Prepackaged AI applications with built-in UI + workflow + model integration.
  
-===== 2) Tầng AI CMS – Dùng ngay (No-code / Low-code) ===== +Equivalent: OpenCart / WordPress
-**What it is:** Ứng dụng AI đã đóng gói sẵn UI + workflow + model integration. +
- +
-**Equivalent:** OpenCart / WordPress+
  
 ==== Examples ==== ==== Examples ====
  
-[[[https://anythingllm.com|AnythingLLM](https://anythingllm.com|AnythingLLM)]]+[[https://anythingllm.com|AnythingLLM 
 +]]
  
-[[[https://flowiseai.com|Flowise](https://flowiseai.com|Flowise)]]+[[https://flowiseai.com|Flowise 
 +]]
  
-[[[https://openwebui.com|Open](https://openwebui.com|OpenWebUI]]+[[https://openwebui.com|Open 
 + WebUI]]
  
-[[[https://botpress.com|Botpress](https://botpress.com|Botpress)]]+[[https://botpress.com|Botpress 
 +]]
  
-[[[https://rasa.com|Rasa](https://rasa.com|Rasa)]]+[[https://rasa.com|Rasa 
 +]]
  
 ==== Key Characteristics ==== ==== Key Characteristics ====
  
-* Có sẵn UI +Built-in UI 
-Workflow dựng bằng form node + 
-* Config bằng YAML / JSON +Workflow built using forms nodes 
-* Gắn LLM là chạy+ 
 +Configured via YAML / JSON 
 + 
 +Plug in an LLM and run
  
 ==== Use When ==== ==== Use When ====
  
-Internal chatbot +Internal chatbot 
-Knowledge assistant + 
-PoC nhanh +Knowledge assistant 
-Team không có ML skill+ 
 +Fast PoC 
 + 
 +Team without ML skills
  
 ==== Limitations ==== ==== Limitations ====
  
-* Khó custom sâu +Hard to deeply customize
-* Performance không tối ưu +
-* Governance yếu nếu không chỉnh+
  
-👉 **Đây là AI CMS đúng nghĩa.**+Performance not optimized
  
----+Weak governance if not configured properly
  
-===== 3) Tầng AI Framework – Giống Laravel / Django ===== +👉 This is true AI CMS.
-**What it is:** Framework để lập trình ứng dụng AI bằng code.+
  
-**Equivalent:** Laravel / Django+===== 3) AI Framework Layer – Like Laravel / Django ===== 
 +What it is: Frameworks for building AI applications using code. 
 + 
 +Equivalent: Laravel / Django
  
 ==== Popular Frameworks ==== ==== Popular Frameworks ====
  
-[[[https://www.langchain.com|LangChain](https://www.langchain.com|LangChain)]] ⭐+[[https://www.langchain.com|LangChain 
 +]] ⭐
  
-[[[https://www.llamaindex.ai|LlamaIndex](https://www.llamaindex.ai|LlamaIndex)]]+[[https://www.llamaindex.ai|LlamaIndex 
 +]]
  
-[[[https://haystack.deepset.ai|Haystack](https://haystack.deepset.ai|Haystack)]]+[[https://haystack.deepset.ai|Haystack 
 +]]
  
-[[[https://learn.microsoft.com/semantic-kernel|Semantic](https://learn.microsoft.com/semantic-kernel|SemanticKernel]]+[[https://learn.microsoft.com/semantic-kernel|Semantic 
 + Kernel]]
  
 ==== What They Do ==== ==== What They Do ====
  
-Prompt management +Prompt management 
-RAG (Retrieval Augmented Generation) + 
-Tool calling +RAG (Retrieval Augmented Generation) 
-Memory & agent flow+ 
 +Tool calling 
 + 
 +Memory & agent flow
  
 ==== Mapping ==== ==== Mapping ====
  
-Laravel ≈ LangChain +Laravel ≈ LangChain 
-Django ≈ LlamaIndex+ 
 +Django ≈ LlamaIndex
  
 ==== Use When ==== ==== Use When ====
  
-* Build AI product thực sự +Building a real AI product 
-* Có backend team + 
-* Cần kiểm soát flow & test+Have a backend team
  
----+Need flow control & testing
  
-===== 4) Tầng Pretrained Model – Model train sẵn ===== +===== 4) Pretrained Model Layer – Pretrained Models ===== 
-**What it is:** Model AI đã được train sẵn trên dữ liệu lớn.+What it is: AI models trained on large datasets.
  
-**Equivalent:** Database engine / Search engine+Equivalent: Database engine / Search engine
  
 ==== Examples ==== ==== Examples ====
  
-[[[https://ai.meta.com/llama|LLaMA](https://ai.meta.com/llama|LLaMA/ LLaMA 3]]+[[https://ai.meta.com/llama|LLaMA 
 + / LLaMA 3]]
  
-[[[https://mistral.ai|Mistral](https://mistral.ai|Mistral/ Mixtral]]+[[https://mistral.ai|Mistral 
 + / Mixtral]]
  
-[[[https://huggingface.co/Qwen|Qwen](https://huggingface.co/Qwen|Qwen)]]+[[https://huggingface.co/Qwen|Qwen 
 +]]
  
-[[[https://deepseek.com|DeepSeek](https://deepseek.com|DeepSeek)]]+[[https://deepseek.com|DeepSeek 
 +]]
  
-[[[https://ai.google.dev/gemma|Gemma](https://ai.google.dev/gemma|Gemma)]]+[[https://ai.google.dev/gemma|Gemma 
 +]]
  
 ==== Characteristics ==== ==== Characteristics ====
  
-* Không có UI +No UI
-* Không có workflow +
-* Có thể self-host +
-* Có thể fine-tune+
  
-🚫 **Không phải CMS** – chỉ là "bộ não".+No workflow
  
----+Can be self-hosted
  
-===== 5) Tầng AI Inference Engine ===== +Can be fine-tuned
-**What it is:** Runtime để chạy model hiệu quả.+
  
-**Equivalent:** JVM / PHP runtime / DB engine core+🚫 Not a CMS – just the “brain.” 
 + 
 +===== 5) AI Inference Engine Layer ===== 
 +What it is: Runtime for executing models efficiently. 
 + 
 +Equivalent: JVM / PHP runtime / DB engine core
  
 ==== Examples ==== ==== Examples ====
  
-[[[https://github.com/vllm-project/vllm|vLLM](https://github.com/vllm-project/vllm|vLLM)]]+[[https://github.com/vllm-project/vllm|vLLM 
 +]]
  
-[[[https://github.com/ggerganov/llama.cpp|llama.cpp](https://github.com/ggerganov/llama.cpp|llama.cpp)]]+[[https://github.com/ggerganov/llama.cpp|llama.cpp 
 +]]
  
-[[[https://developer.nvidia.com/tensorrt-llm|TensorRT-LLM](https://developer.nvidia.com/tensorrt-llm|TensorRT-LLM)]]+[[https://developer.nvidia.com/tensorrt-llm|TensorRT-LLM 
 +]]
  
-[[[https://github.com/huggingface/text-generation-inference|TGI](https://github.com/huggingface/text-generation-inference|TGI)]]+[[https://github.com/huggingface/text-generation-inference|TGI 
 +]]
  
 ==== Use When ==== ==== Use When ====
  
-High throughput +High throughput
-* Tối ưu cost +
-* On-prem / air-gapped+
  
----+Cost optimization
  
-===== 6) Tầng Managed AI Platform (AI SaaS) ===== +On-prem / air-gapped
-**What it is:** Nền tảng AI được vận hành hoàn toàn bởi vendor.+
  
-**Equivalent:** Shopify / Salesforce+===== 6) Managed AI Platform (AI SaaS) ===== 
 +What it is: AI platforms fully operated by vendors. 
 + 
 +Equivalent: Shopify / Salesforce
  
 ==== Examples ==== ==== Examples ====
  
-[[[https://openai.com|OpenAI](https://openai.com|OpenAI/ Azure OpenAI]]+[[https://openai.com|OpenAI 
 + / Azure OpenAI]]
  
-[[[https://aws.amazon.com/bedrock|AWS](https://aws.amazon.com/bedrock|AWSBedrock]]+[[https://aws.amazon.com/bedrock|AWS 
 + Bedrock]]
  
-[[[https://cloud.google.com/vertex-ai|Google](https://cloud.google.com/vertex-ai|GoogleVertex AI]]+[[https://cloud.google.com/vertex-ai|Google 
 + Vertex AI]]
  
 ==== Pros / Cons ==== ==== Pros / Cons ====
  
-✅ Nhanhkhông lo infra +✅ Fastno infrastructure management
-* ❌ Chi phí cao, lock-in+
  
----+❌ Higher cost, vendor lock-in
  
-===== 7) Sơ đồ tổng thể các tầng ===== +===== 7) Overall Layer Diagram =====
 <code> <code>
 AI CMS (No-code) AI CMS (No-code)
-│  Flowise / AnythingLLM+│ Flowise / AnythingLLM
  
 AI Framework (Code) AI Framework (Code)
-│  LangChain / LlamaIndex+│ LangChain / LlamaIndex
  
 Pretrained Model Pretrained Model
-│  LLaMA / Mistral+│ LLaMA / Mistral
  
 Inference Engine Inference Engine
-│  vLLM / llama.cpp+│ vLLM / llama.cpp
  
 Infrastructure Infrastructure
-│  Cloud / On-prem GPU </code>+│ Cloud / On-prem GPU </code>
  
----+===== 8) What to Choose in Practice? =====
  
-===== 8) Chọn gì trong thực tế? =====+"Like OpenCart, download and run" → AnythingLLM / Flowise
  
-"Giống OpenCart, kéo về chạy" → **AnythingLLM / Flowise** +"Like Laravel" → LangChain / LlamaIndex
-* "Giống Laravel" → **LangChain / LlamaIndex** +
-* "Enterprise, kiểm soát data" → **Open-source model + vLLM + RAG**+
  
----+"Enterprise, data control" → Open-source model + vLLM + RAG
  
-====== Phân loại dịch vụ AI – Company & Use Case ======+====== AI Service Classification – Company & Use Case ======
  
-===== Mục tiêu ===== +===== Goal ===== 
-Trang này phân loại **các dịch vụ AI phổ biến hiện nay** theo **tư duy lập trình viên senior** (CMS / Framework / Runtime), kèm:+This page classifies popular AI services today using a senior developer mindset (CMS / Framework / Runtime), including:
  
-* Công ty đứng sau +Company behind it
-* Công dụng thực tế +
-* Vị trí trong kiến trúc hệ thống+
  
----+Real-world use case
  
-===== Tổng quan phân tầng ===== +Position in system architecture
-AI không phải một khối duy nhất, mà gồm **6 tầng**, từ "dùng ngay" đến "lõi hạ tầng".+
  
-<code> +===== Layer Overview ===== 
-AI App / Tool +AI is not a single block, but consists of 6 layers, from “ready to use” to “infrastructure core.”
-↓ +
-AI Platform (API) +
-↓ +
-AI Framework +
-↓ +
-Pretrained Model +
-↓ +
-Inference Engine +
-↓ +
-Infrastructure (GPU) +
-</code>+
  
----+<code> AI App / Tool ↓ AI Platform (API) ↓ AI Framework ↓ Pretrained Model ↓ Inference Engine ↓ Infrastructure (GPU) </code>
  
-===== 1) AI App / AI Tool (Dùng ngay) ===== +===== 1) AI App / AI Tool (Ready to Use) ===== 
-**Tương đương:** CMS (WordPress / OpenCart)+Equivalent: CMS (WordPress / OpenCart)
  
-Dịch vụ Công ty Công dụng chính +Service Company Main Use 
-| ChatGPT | OpenAI | Trợ lý đa nănghỏi đápcodeviết spec | +| ChatGPT | OpenAI | General assistantQ&Acoding, spec writing 
-| Claude Chat | Anthropic | Phân tích tài liệu dài, reasoning |+| Claude Chat | Anthropic | Long document analysis, reasoning |
 | GitHub Copilot | GitHub / Microsoft | Code completion, pair programming | | GitHub Copilot | GitHub / Microsoft | Code completion, pair programming |
-| AnythingLLM | Mintplex Labs | Chatbot nội bộ theo tài liệu +| AnythingLLM | Mintplex Labs | Internal document chatbot 
-| Flowise | FlowiseAI (OSS) | Dựng workflow AI nhanh +| Flowise | FlowiseAI (OSS) | Rapid AI workflow building 
-| Open WebUI | Open-source | UI chat cho model self-host +| Open WebUI | Open-source | Chat UI for self-hosted models 
-| Botpress | Botpress Inc. | Chatbot CSKH |+| Botpress | Botpress Inc. | Customer service chatbot |
 | Rasa | Rasa Technologies | Conversation engine | | Rasa | Rasa Technologies | Conversation engine |
  
-**Dùng khi:** PoC nhanhnội bộ, team nhỏ +Use whenFast PoC, internal usesmall team
- +
----+
  
 ===== 2) AI Platform / AI SaaS ===== ===== 2) AI Platform / AI SaaS =====
-**Tương đương:** Shopify / Firebase+Equivalent: Shopify / Firebase
  
-Nền tảng Công ty Công dụng chính ^+Platform Company Main Use ^
 | OpenAI API | OpenAI | LLM API: chat, embedding, tool calling | | OpenAI API | OpenAI | LLM API: chat, embedding, tool calling |
 | Azure OpenAI | Microsoft | OpenAI + enterprise security | | Azure OpenAI | Microsoft | OpenAI + enterprise security |
-| AWS Bedrock | Amazon | Multi-model AI cho enterprise |+| AWS Bedrock | Amazon | Multi-model AI for enterprise |
 | Google Vertex AI | Google | End-to-end AI platform | | Google Vertex AI | Google | End-to-end AI platform |
 | IBM watsonx | IBM | AI + data governance | | IBM watsonx | IBM | AI + data governance |
  
-**Dùng khi:** Gọi AI qua API, không muốn quản GPU +Use whenCalling AI via API, no GPU management
- +
----+
  
 ===== 3) AI Framework (Build AI Logic) ===== ===== 3) AI Framework (Build AI Logic) =====
-**Tương đương:** Laravel / Django+Equivalent: Laravel / Django
  
-^ Framework ^ Công ty Tổ chức Công dụng chính +^ Framework ^ Company Organization Main Use 
-| LangChain | LangChain Inc. | Orchestrate prompt, agent, tool |+| LangChain | LangChain Inc. | Orchestrate prompt, agent, tools |
 | LlamaIndex | LlamaIndex Inc. | RAG (document → answer) | | LlamaIndex | LlamaIndex Inc. | RAG (document → answer) |
 | Haystack | deepset | Search + QA pipeline | | Haystack | deepset | Search + QA pipeline |
-| Semantic Kernel | Microsoft | AI orchestration enterprise |+| Semantic Kernel | Microsoft | Enterprise AI orchestration |
 | CrewAI | CrewAI Inc. | Multi-agent workflow | | CrewAI | CrewAI Inc. | Multi-agent workflow |
 | AutoGen | Microsoft Research | Agent collaboration | | AutoGen | Microsoft Research | Agent collaboration |
  
-**Dùng khi:** Build AI feature thậtcần test & CI/CD +Use whenBuilding real AI featuresneed testing & CI/CD
- +
----+
  
-===== 4) Pretrained Model (Bộ não AI) ===== +===== 4) Pretrained Model (AI Brain) ===== 
-**Tương đương:** Database / Search Engine+Equivalent: Database / Search Engine
  
-^ Model ^ Công ty Công dụng chính ^+^ Model ^ Company Main Use ^
 | GPT-4 / GPT-5 | OpenAI | Reasoning, general-purpose | | GPT-4 / GPT-5 | OpenAI | Reasoning, general-purpose |
 | Claude 3 / 4 | Anthropic | Long context, safety | | Claude 3 / 4 | Anthropic | Long context, safety |
 | Gemini | Google | Multimodal | | Gemini | Google | Multimodal |
 | LLaMA 3 | Meta | Open-source, self-host | | LLaMA 3 | Meta | Open-source, self-host |
-| Mistral / Mixtral | Mistral AI | Nhẹnhanh, cost thấp |+| Mistral / Mixtral | Mistral AI | Lightweightfastlow cost |
 | Qwen | Alibaba | Multilingual | | Qwen | Alibaba | Multilingual |
 | DeepSeek | DeepSeek AI | Reasoning, open | | DeepSeek | DeepSeek AI | Reasoning, open |
  
-**Lưu ý:** Model không có UI, không có workflow +NoteModels have no UI and no workflow.
- +
----+
  
 ===== 5) Inference Engine (Runtime) ===== ===== 5) Inference Engine (Runtime) =====
-**Tương đương:** JVM / PHP-FPM+Equivalent: JVM / PHP-FPM
  
-^ Engine ^ Công ty Tổ chức Công dụng chính ^+^ Engine ^ Company Organization Main Use ^
 | vLLM | UC Berkeley | High-throughput LLM serving | | vLLM | UC Berkeley | High-throughput LLM serving |
-| llama.cpp | Open-source | Chạy LLM trên CPU / edge | +| llama.cpp | Open-source | Run LLM on CPU / edge | 
-| TensorRT-LLM | NVIDIA | Tối ưu GPU, latency thấp |+| TensorRT-LLM | NVIDIA | GPU optimizationlow latency |
 | TGI | Hugging Face | Production LLM endpoint | | TGI | Hugging Face | Production LLM endpoint |
 | ONNX Runtime | Microsoft | Cross-platform inference | | ONNX Runtime | Microsoft | Cross-platform inference |
  
-**Dùng khi:** Self-host model, traffic lớntối ưu cost +Use when: Self-host modelshigh traffic, cost optimization
- +
----+
  
 ===== 6) Infrastructure (GPU / Cloud) ===== ===== 6) Infrastructure (GPU / Cloud) =====
-**Tương đương:** Server / Datacenter+Equivalent: Server / Datacenter
  
-^ Infra ^ Công ty Công dụng chính ^+^ Infra ^ Company Main Use ^
 | AWS GPU | Amazon | AI cloud | | AWS GPU | Amazon | AI cloud |
 | Azure GPU | Microsoft | AI cloud | | Azure GPU | Microsoft | AI cloud |
 | GCP GPU | Google | AI cloud | | GCP GPU | Google | AI cloud |
-| NVIDIA A100 / H100 | NVIDIA | Training / inference lớn +| NVIDIA A100 / H100 | NVIDIA | Large-scale training / inference | 
-| On-prem GPU | Doanh nghiệp Privacy tuyệt đối |+| On-prem GPU | Enterprise Full privacy |
  
---- +===== Real Architecture Example ===== <code>
- +
-===== Ví dụ kiến trúc thực tế ===== <code>+
 React / Vue React / Vue
  
Line 320: Line 319:
 LangChain / LlamaIndex LangChain / LlamaIndex
  
-OpenAI API hoặc LLaMA+OpenAI API or LLaMA
  
-(vLLM nếu self-host) </code> +(vLLM if self-host) </code>
- +
----+
  
-===== Ghi chú quan trọng ===== +===== Important Notes ===== 
-⚠️ AI **không deterministic** như code truyền thống.+⚠️ AI is not deterministic like traditional code.
  
-Luôn cần:+Always require:
  
-* Guardrail +Guardrails
-* Evaluation +
-* Human review+
  
 +Evaluation
  
 +Human review
ai/ai-open-sources.1769074321.txt.gz · Last modified: by phong2018