ai:ai-open-sources
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| ai:ai-open-sources [2026/01/22 09:32] – phong2018 | ai: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ống, nhưng được chia thành **nhiều tầng đóng gói** khác nhau. | + | Yes. In AI, there are equivalent concepts to CMS / Framework / Library |
| - | **Mục tiêu trang này:** Giải thích | + | Goal of this page: Explain |
| - | **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 |
| - | **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 " | + | Key idea: AI is not a single block, but is divided into multiple packaging layers, from “ready to use” to “build from the core.” |
| - | --- | + | ===== 1) Direct |
| - | + | ||
| - | ===== 1) Mapping | + | |
| ^ 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 | + | | Custom low-level code | Train model from scratch | Expensive |
| - | --- | + | ===== 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:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | WebUI]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| ==== Key Characteristics ==== | ==== Key Characteristics ==== | ||
| - | * Có sẵn UI | + | Built-in |
| - | * Workflow | + | |
| - | * Config bằng | + | Workflow |
| - | * 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 | ||
| ==== 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 | + | |
| - | **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:// | + | [[https:// |
| + | ]] ⭐ | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | 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 | + | 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 | + | ===== 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:// | + | [[https:// |
| + | / LLaMA 3]] | ||
| - | * [[[https:// | + | [[https:// |
| + | / Mixtral]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| ==== 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:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| - | * [[[https:// | + | [[https:// |
| + | ]] | ||
| ==== 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:// | + | [[https:// |
| + | / Azure OpenAI]] | ||
| - | * [[[https:// | + | [[https:// |
| + | Bedrock]] | ||
| - | * [[[https:// | + | [[https:// |
| + | Vertex AI]] | ||
| ==== Pros / Cons ==== | ==== Pros / Cons ==== | ||
| - | * ✅ Nhanh, không lo infra | + | ✅ Fast, no 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 |
| < | < | ||
| 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 </ | + | │ Cloud / On-prem GPU </ |
| - | --- | + | ===== 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" | + | "Like Laravel" |
| - | * " | + | |
| - | * " | + | |
| - | --- | + | " |
| - | ====== | + | ====== AI Service Classification |
| - | ===== 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), | + | This page classifies popular |
| - | * 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" | + | |
| - | < | + | ===== 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) | + | |
| - | </ | + | |
| - | --- | + | < |
| - | ===== 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 |
| - | | ChatGPT | OpenAI | Trợ lý đa năng, hỏi đáp, code, viết | + | | ChatGPT | OpenAI | General assistant, Q&A, coding, 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 | + | | 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 nhanh, nội bộ, team nhỏ | + | Use when: Fast PoC, internal use, small team |
| - | + | ||
| - | --- | + | |
| ===== 2) AI Platform / AI SaaS ===== | ===== 2) AI Platform / AI SaaS ===== | ||
| - | **Tương đương:** Shopify / Firebase | + | Equivalent: Shopify / Firebase |
| - | ^ Nền tảng | + | ^ Platform |
| | 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 | + | Use when: Calling |
| - | + | ||
| - | --- | + | |
| ===== 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 | + | ^ Framework ^ Company |
| - | | LangChain | LangChain Inc. | Orchestrate prompt, agent, | + | | LangChain | LangChain Inc. | Orchestrate prompt, agent, |
| | 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 | + | | Semantic Kernel | Microsoft | Enterprise |
| | 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ật, cần test & CI/CD | + | Use when: Building real AI features, need testing |
| - | + | ||
| - | --- | + | |
| - | ===== 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 |
| | 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, | | LLaMA 3 | Meta | Open-source, | ||
| - | | Mistral / Mixtral | Mistral AI | Nhẹ, nhanh, cost thấp | + | | Mistral / Mixtral | Mistral AI | Lightweight, fast, low 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 | + | Note: Models 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 | + | ^ Engine ^ Company |
| | vLLM | UC Berkeley | High-throughput LLM serving | | | vLLM | UC Berkeley | High-throughput LLM serving | | ||
| - | | llama.cpp | Open-source | Chạy | + | | llama.cpp | Open-source | Run LLM on CPU / edge | |
| - | | TensorRT-LLM | NVIDIA | Tối ưu GPU, latency | + | | TensorRT-LLM | NVIDIA | GPU optimization, low 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 | + | Use when: Self-host |
| - | + | ||
| - | --- | + | |
| ===== 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 |
| | 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 | + | | NVIDIA A100 / H100 | NVIDIA | Large-scale training |
| - | | On-prem GPU | Doanh nghiệp | + | | On-prem GPU | Enterprise |
| - | --- | + | ===== Real Architecture Example |
| - | + | ||
| - | ===== Ví dụ kiến trúc thực tế ===== < | + | |
| React / Vue | React / Vue | ||
| ↓ | ↓ | ||
| Line 320: | Line 319: | ||
| LangChain / LlamaIndex | LangChain / LlamaIndex | ||
| ↓ | ↓ | ||
| - | OpenAI API hoặc | + | OpenAI API or LLaMA |
| ↓ | ↓ | ||
| - | (vLLM nếu self-host) </ | + | (vLLM if self-host) </ |
| - | + | ||
| - | --- | + | |
| - | ===== Ghi chú quan trọng | + | ===== Important Notes ===== |
| - | ⚠️ AI **không | + | ⚠️ AI is not deterministic |
| - | 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
