---
title: "LlamaIndex: ฟีเจอร์ เวอร์ชัน และ Quickstart · DotsAgent"
description: "LlamaIndex โดย LlamaIndex: ไลเซนส์ เวอร์ชันล่าสุด รองรับ MCP, การรันงานแบบต่อเนื่อง การอนุมัติโดยมนุษย์ การ tracing และ evals พร้อม Quickstart ที่คัดลอกไปใช้ได้"
url: https://dotsagent.io/th/frameworks/llamaindex
---

เฟรมเวิร์ก · LlamaIndex

# ภาพรวม LlamaIndex

LlamaIndex ผสานเครื่องมือแยกวิเคราะห์เอกสารและค้นคืนข้อมูลเข้ากับ Agent Workflows แบบขับเคลื่อนด้วยเหตุการณ์ใน Python และ TypeScript Workflows หยุดรอข้อมูลจากมนุษย์ บันทึก state และให้บริการเป็น MCP servers หรือ deploy ไปยัง LlamaCloud ได้

**เหมาะสำหรับ:**  เอเจนต์ที่ทำงานกับเอกสารจำนวนมากและเน้นการค้นคืนข้อมูล โดยแยกวิเคราะห์ ดึงข้อมูล และค้นหาก่อนลงมือทำ

## ข้อมูลสำคัญ

- **ผู้ดูแล**: LlamaIndex
- **ภาษา**: Python, TypeScript
- **ไลเซนส์**: MIT
- **เวอร์ชันล่าสุด**: `llama-index 0.14.25 / llama-index-workflows 2.25.0` · 25 กันยายน 2569
- **Repository**: [run-llama/llama_index](https://github.com/run-llama/llama_index) · 52,380 ดาว
- **ตัวเลือกแบบโฮสต์**: [LlamaCloud via LlamaAgents (llamactl deploy)](https://developers.llamaindex.ai/python/llamaagents/llamactl/workflow-api/)Deploy ด้วย llamactl จากนั้น workflows จะให้บริการผ่าน api.cloud.llamaindex.ai

## Quickstart

ติดตั้งแพ็กเกจ ตั้งค่าข้อมูลรับรอง แล้วเรียกใช้ agent ตัวอย่างที่เล็กที่สุดจากเอกสารทางการ Model ID เป็นค่าที่เอกสารใช้ และอาจยังไม่ได้เปิดใช้งานในบัญชีของคุณ

`ติดตั้ง`

```
pip install llama-index-core llama-index-llms-openai  (from search summary of the starter tutorial; not copied verbatim)
```

ต้องใช้ OPENAI_API_KEY

`Python`

```
import asyncio
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

# Define a simple calculator tool
def multiply(a: float, b: float) -> float:
    """Useful for multiplying two numbers."""
    return a * b

# Create an agent workflow with our calculator tool
agent = FunctionAgent(
    tools=[multiply],
    llm=OpenAI(model="gpt-4o-mini"),
    system_prompt="You are a helpful assistant that can multiply two numbers.",
)

async def main():
    # Run the agent
    response = await agent.run("What is 1234 * 4567?")
    print(str(response))

# Run the agent
if __name__ == "__main__":
    asyncio.run(main())
```

[แหล่งข้อมูล Quickstart](https://developers.llamaindex.ai/python/framework/module_guides/deploying/agents/)

## ฟีเจอร์

| ใช้ได้กับทุกโมเดล | — | ใช้ FunctionAgent กับโมเดลที่รองรับ function calling และใช้ ReActAgent กับโมเดลอื่น |
| --- | --- | --- |
| MCP client | — | ใช้ get_tools_from_mcp_url จาก llama-index-tools-mcp |
| MCP server | — | workflow_as_mcp ให้บริการ workflow ผ่าน FastMCP |
| หลาย agent | — | AgentWorkflow ประสานงานเอเจนต์หลายตัว |
| การทำงานต่อเนื่องแบบทนทาน | — | Workflows บันทึก state ได้เมื่อเชื่อมต่อ coordination backend |
| การอนุมัติโดยมนุษย์ | — | InputRequiredEvent และ HumanResponseEvent ใช้หยุดรอใน workflow |
| Tracing | — | — |
| Evals | — | — |

## การเปลี่ยนแปลงล่าสุด

- เปลี่ยนชื่อ repo workflows เป็น run-llama/llama-agents (LlamaAgents); แพ็กเกจบน PyPI ยังคงชื่อ llama-index-workflows
- ตอนนี้ llamactl ใช้ให้บริการและ deploy workflows ได้

## ทางเลือกในภาษาเดียวกัน

- [OpenAI Agents SDK](https://dotsagent.io/th/frameworks/openai-agents-python)

- [OpenAI Agents SDK (JS)](https://dotsagent.io/th/frameworks/openai-agents-js)

- [Claude Agent SDK](https://dotsagent.io/th/frameworks/claude-agent-sdk)

- [Google ADK](https://dotsagent.io/th/frameworks/google-adk)

- [Microsoft Agent Framework](https://dotsagent.io/th/frameworks/microsoft-agent-framework)

- [LangGraph](https://dotsagent.io/th/frameworks/langgraph)

## แหล่งข้อมูล

1. [developers.llamaindex.ai](https://developers.llamaindex.ai/python/framework/getting_started/starter_example/)/python/framework/getting_started/starter_example/
2. [developers.llamaindex.ai](https://developers.llamaindex.ai/python/framework/module_guides/deploying/agents/)/python/framework/module_guides/deploying/agents/
3. [developers.llamaindex.ai](https://developers.llamaindex.ai/python/examples/agent/agent_workflow_basic/)/python/examples/agent/agent_workflow_basic/
4. [developers.llamaindex.ai](https://developers.llamaindex.ai/python/examples/tools/mcp/)/python/examples/tools/mcp/
5. [developers.llamaindex.ai](https://developers.llamaindex.ai/python/llamaagents/workflows/human_in_the_loop/)/python/llamaagents/workflows/human_in_the_loop/
6. [developers.llamaindex.ai](https://developers.llamaindex.ai/python/llamaagents/llamactl/workflow-api/)/python/llamaagents/llamactl/workflow-api/
7. [github.com](https://github.com/run-llama/llama-agents)/run-llama/llama-agents
8. [pypi.org](https://pypi.org/pypi/llama-index/json)/pypi/llama-index/json
9. [api.github.com](https://api.github.com/repos/run-llama/llama_index)/repos/run-llama/llama_index

แหล่งอ้างอิงอิสระสำหรับผู้สร้าง AI agent ไม่มีส่วนเกี่ยวข้องกับผู้ให้บริการที่กล่าวถึง

© 2026 DotsAgent · ตรวจสอบข้อมูลเมื่อ 1 ตุลาคม 2569
