dotsagent.io
ภาษา:ไทย
เฟรมเวิร์ก · 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 · 52,380 ดาว
ตัวเลือกแบบโฮสต์
LlamaCloud via LlamaAgents (llamactl deploy)
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

ฟีเจอร์

ใช้ได้กับทุกโมเดลใช่ใช้ 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 ได้

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

แหล่งข้อมูล

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