@ag-ui/llamaindex
v0.1.5
Published
Implementation of the AG-UI protocol for LlamaIndex.
Readme
@ag-ui/llamaindex
Implementation of the AG-UI protocol for LlamaIndex.
Connects LlamaIndex workflows to frontend applications via the AG-UI protocol. Provides HTTP connectivity to LlamaIndex servers with support for RAG pipelines and workflow orchestration.
Installation
npm install @ag-ui/llamaindex
pnpm add @ag-ui/llamaindex
yarn add @ag-ui/llamaindexUsage
import { LlamaIndexAgent } from "@ag-ui/llamaindex";
// Create an AG-UI compatible agent
const agent = new LlamaIndexAgent({
url: "http://localhost:9000/agentic_chat",
headers: { "Content-Type": "application/json" },
});
// Run with streaming
const result = await agent.runAgent({
messages: [{ role: "user", content: "Query my documents" }],
});Features
- HTTP connectivity – Connect to LlamaIndex FastAPI servers
- Workflow support – Full integration with LlamaIndex workflow orchestration
- RAG capabilities – Document retrieval and reasoning workflows
- Python integration – Complete FastAPI server implementation included
To run the example server in the dojo
cd integrations/llama-index/python/examples
uv sync && uv run dev