先看实际效果
LlamaIndex: call a calculator with a local model
The complete local starter uses Ollama llama3.1 to select a multiplication tool. Its 5,635,678 answer is the guide’s illustrative output. Install the model and integrations first; the source lists an approximately 32 GB RAM prerequisite.
示例输入
import asyncio
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.ollama import Ollama
# 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=Ollama(
model="llama3.1",
request_timeout=360.0,
# Manually set the context window to limit memory usage
context_window=8000,
),
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())示例输出
The answer to 1234 * 4567 is 5635678.许可
Complete original license and any source copyright retained. Source-authored examples are separate from site-reproduced results; no original scripts, installations, model/API requests, account creation, memory writes, graph queries or tests were executed.
The MIT License
Copyright (c) Jerry Liu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
LlamaIndex: inspect an author’s notebook graph preview
The author’s notebook graph preview illustrates an extracted network of entities and connections, with its original yFiles interface marks. Use the native image to inspect the overall structure. Graph-building follows the separate property-graph tutorial and its data/model prerequisites.

许可
Complete original license and any source copyright retained. Source-authored examples are separate from site-reproduced results; no original scripts, installations, model/API requests, account creation, memory writes, graph queries or tests were executed. Original PNG converted at native resolution to lossless WebP with identical decoded RGBA; no crop, retouch or upscaling.
The MIT License
Copyright (c) Jerry Liu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
LlamaIndex: inspect the author’s Neo4j graph view
An original Neo4j capture shows the complete entity query below and its extracted graph. Truncated labels and imperfect generated relationships make it useful for inspecting extraction quality. The underlying essay and graph database belong to the source tutorial’s separate setup.

示例输入
match (n:`__Entity__`) return n许可
Complete original license and any source copyright retained. Source-authored examples are separate from site-reproduced results; no original scripts, installations, model/API requests, account creation, memory writes, graph queries or tests were executed. Complete visible messages/queries and selected replies are manually transcribed from the native author image; turn labels only identify sequence. Original PNG converted at native resolution to lossless WebP with identical decoded RGBA; no crop, retouch or upscaling.
The MIT License
Copyright (c) Jerry Liu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
产品介绍
We’re an applied AI lab building frontier models for enterprise-grade document parsing and extraction.
来源语言 · ENLlamaIndex 能做什么
- 01Parse documents into AI-ready content
- 02Extract structured data using schemas
- 03Build retrieval and agent workflows with its framework
它有什么不同
The current product offering emphasizes document processing through LlamaParse. Its open-source framework remains available for connecting retrieval and model components; framework use and hosted platform services have separate setup requirements.
来源语言 · EN谁值得考虑
- Teams building document processing workflows
- Developers building retrieval-augmented applications
需要核对的事项
- 用一个真实任务试用,并对照自己的要求检查结果。
- 核实服务会保存、共享或用于训练哪些数据。
- 在官网确认当前价格、使用限额和取消条款。
官网链接核查于 2026年11月9日;功能声明尚未经过独立测试。




