Skip to content

Commit 41e4dea

Browse files
authored
Merge pull request #59 from TuanaCelik/patch-1
Update README.md
2 parents cc4f919 + c1905b8 commit 41e4dea

1 file changed

Lines changed: 43 additions & 68 deletions

File tree

Lines changed: 43 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Quickstart LlamaCloud Agent
22

3-
This project demonstrates how to integrate UiPath with LlamaIndex and LlamaCloud for document search and travel assistance workflows using a FunctionAgent.
3+
This project demonstrates how to integrate UiPath with LlamaIndex and LlamaCloud for document search and travel assistance workflows using a `FunctionAgent`.
44

55
## Overview
66

@@ -33,30 +33,11 @@ The Quickstart LlamaCloud Agent provides a FunctionAgent that can:
3333
We recommend using `uv` for package management:
3434

3535
```bash
36-
# Initialize a new uv project
37-
uv init .
38-
3936
# Create and activate virtual environment
4037
uv venv
4138
source .venv/bin/activate # On Windows: .venv\Scripts\activate
4239
```
4340

44-
Alternatively, use `pip`:
45-
46-
```bash
47-
# Create virtual environment
48-
python -m venv .venv
49-
50-
# Activate virtual environment
51-
# On Windows PowerShell: .venv\Scripts\Activate.ps1
52-
# On Windows CMD: .venv\Scripts\activate
53-
# On macOS/Linux: source .venv/bin/activate
54-
source .venv/bin/activate
55-
56-
# Upgrade pip
57-
python -m pip install --upgrade pip
58-
```
59-
6041
### 2. Install Dependencies
6142

6243
```bash
@@ -78,16 +59,54 @@ Required environment variables:
7859
- `LLAMACLOUD_API_KEY`: Your LlamaCloud API key
7960
- `LLAMACLOUD_ORG_ID`: Your LlamaCloud organization ID
8061
- `LLAMACLOUD_PROJECT_NAME`: Your LlamaCloud project name
81-
- `LLAMACLOUD_INDEX_1_NAME`: First index name (e.g., "company_policy")
82-
- `LLAMACLOUD_INDEX_2_NAME`: Second index name (e.g., "personal_preferences")
62+
- `LLAMACLOUD_INDEX_1_NAME`: First index name (e.g., "company-policy")
63+
- `LLAMACLOUD_INDEX_2_NAME`: Second index name (e.g., "personal-preferences")
64+
65+
## 4. Authenticate With UiPath
66+
67+
```shell
68+
> uipath auth
69+
⠋ Authenticating with UiPath ...
70+
🔗 If a browser window did not open, please open the following URL in your browser: [LINK]
71+
👇 Select tenant:
72+
0: Tenant1
73+
1: Tenant2
74+
Select tenant number: 0
75+
Selected tenant: Tenant1
76+
✓ Authentication successful.
77+
```
8378

84-
### 4. Configure LlamaCloud Indexes
79+
### 5. Configure LlamaCloud Indexes
8580

8681
- Set up your indexes in LlamaCloud with the names specified in your `.env` file
8782
- You can drag and drop the files in `/sample_data` into the relevant indexes
8883
- Update the project name and organization ID in your `.env` file
8984
- Ensure your API key has access to the specified indexes
9085

86+
### 6. Run Locally
87+
88+
```bash
89+
# Run the agent with a query
90+
uipath run agent '{"user_msg": "What are the travel rates for New York?"}'
91+
```
92+
93+
### 7. Run as a UiPath Deployment
94+
95+
1. **Package your project:**
96+
```bash
97+
uipath pack
98+
```
99+
100+
2. **Publish to UiPath Cloud:**
101+
```bash
102+
uipath publish --my-workspace
103+
```
104+
105+
3. **Invoke the agent:**
106+
```bash
107+
uipath invoke agent '{"user_msg": "What are the travel rates for New York?"}'
108+
```
109+
91110
## Available Functions
92111

93112
The agent has access to three main functions:
@@ -107,50 +126,6 @@ Generates comprehensive travel recommendations combining both company policies a
107126
- **Use case**: "Give me travel recommendations for a business trip"
108127
- **Returns**: Combined analysis from both indexes
109128

110-
## Usage
111-
112-
### Local Testing
113-
114-
115-
#### Using UiPath CLI (Recommended)
116-
117-
```bash
118-
# Run the agent with a query
119-
uipath run agent '{"query": "What are the travel rates for New York?"}'
120-
```
121-
122-
#### Option 3: Using Input File
123-
124-
Create an `input.json` file:
125-
126-
```json
127-
{
128-
"user_msg": "What are the travel rates for California?"
129-
}
130-
```
131-
132-
133-
### UiPath Deployment
134-
135-
1. **Authenticate with UiPath:**
136-
```bash
137-
uipath auth
138-
```
139-
140-
2. **Package your project:**
141-
```bash
142-
uipath pack
143-
```
144-
145-
3. **Publish to UiPath Cloud:**
146-
```bash
147-
uipath publish --my-workspace
148-
```
149-
150-
4. **Invoke the agent:**
151-
```bash
152-
uipath invoke agent '{"user_msg": "What are the travel rates for New York?"}'
153-
```
154129

155130

156131
## Example Queries
@@ -165,4 +140,4 @@ Create an `input.json` file:
165140

166141
- `uipath-llamaindex`: UiPath LlamaIndex integration
167142
- `llama-index-llms-openai`: OpenAI LLM integration
168-
- `llama-cloud-services`: LlamaCloud integration
143+
- `llama-cloud-services`: LlamaCloud integration

0 commit comments

Comments
 (0)