Skip to content

Commit 9ee60ce

Browse files
docs(llamaindex/quickstart): reorder agent.py creation after front-end
1 parent e004d3f commit 9ee60ce

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

docs/content/docs/llamaindex/quickstart.mdx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,22 @@ Before you begin, you'll need the following:
182182
</Tab>
183183
</Tabs>
184184
</Step>
185+
<Step>
186+
### Frontend Setup
187+
CopilotKit works with any React-based frontend. We'll use Next.js for this example.
188+
189+
```bash
190+
npx create-next-app@latest my-copilot-app
191+
cd my-copilot-app
192+
```
193+
</Step>
194+
<Step>
195+
### Install CopilotKit packages
196+
197+
```package-install
198+
@copilotkit/react-ui @copilotkit/react-core @copilotkit/runtime @ag-ui/llamaindex
199+
```
200+
</Step>
185201
<Step>
186202
### Create your LlamaIndex agent server
187203

@@ -229,22 +245,6 @@ Before you begin, you'll need the following:
229245
The `get_ag_ui_workflow_router` creates a standardized API endpoint that CopilotKit can communicate with. This allows your LlamaIndex agent to work seamlessly with the CopilotKit frontend.
230246
</Callout>
231247
</Step>
232-
<Step>
233-
### Frontend Setup
234-
CopilotKit works with any React-based frontend. We'll use Next.js for this example.
235-
236-
```bash
237-
npx create-next-app@latest my-copilot-app
238-
cd my-copilot-app
239-
```
240-
</Step>
241-
<Step>
242-
### Install CopilotKit packages
243-
244-
```package-install
245-
@copilotkit/react-ui @copilotkit/react-core @copilotkit/runtime @ag-ui/llamaindex
246-
```
247-
</Step>
248248
<Step>
249249
### Setup Copilot Runtime
250250

0 commit comments

Comments
 (0)