Skip to main content

Prerequisites

Before you can configure and use LlamaIndex with Connect AI, you must do the following:

Create the Python Files

1
Create a folder for LlamaIndex MCP.
2
Create a Python file within the folder called llamaindex.py.
3
In llamaindex.py, set up your MCP server and MCP client to call the tools and prompts. The Authorization is Bearer and the JWT bearer token from the prerequisites.

Install the LlamaIndex Packages

Run the following command in your project terminal:

Run the Python Script

1
When the installation finishes, run the following command to execute the script:
2
The script discovers the Connect AI MCP tools needed for the LLM to query the connected data.
3
Supply a prompt for the agent. The agent provides a response.
LlamaIndex Client Terminal