Skip to content

Commit 6cc880d

Browse files
authored
Merge pull request #63 from tjaffri/tjaffri/llamaindex-sample
Updates to llamaindex sample docs and deps
2 parents b0fe1e3 + 96136e9 commit 6cc880d

5 files changed

Lines changed: 3105 additions & 7 deletions

File tree

samples/quickstart-llamacloud/README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ source .venv/bin/activate # On Windows: .venv\Scripts\activate
4242

4343
```bash
4444
# Install the project dependencies
45-
pip install -e .
45+
uv sync
4646
```
4747

4848
### 3. Configure Environment Variables
@@ -56,14 +56,18 @@ cp .env.example .env
5656

5757
Required environment variables:
5858
- `OPENAI_API_KEY`: Your OpenAI API key
59-
- `LLAMACLOUD_API_KEY`: Your LlamaCloud API key
60-
- `LLAMACLOUD_ORG_ID`: Your LlamaCloud organization ID
59+
- `LLAMACLOUD_API_KEY`: Your LlamaCloud API key (find it under API keys in your LlamaCloud account)
60+
- `LLAMACLOUD_ORG_ID`: Your LlamaCloud organization ID (find it under settings in your LlamaCloud account)
6161
- `LLAMACLOUD_PROJECT_NAME`: Your LlamaCloud project name
6262
- `LLAMACLOUD_INDEX_1_NAME`: First index name (e.g., "company-policy")
6363
- `LLAMACLOUD_INDEX_2_NAME`: Second index name (e.g., "personal-preferences")
6464

6565
## 4. Authenticate With UiPath
6666

67+
Install the uipath cli, e.g. using `pipx install uipath`.
68+
69+
Next, auth with uipath:
70+
6771
```shell
6872
> uipath auth
6973
⠋ Authenticating with UiPath ...
@@ -86,10 +90,15 @@ Selected tenant: Tenant1
8690
### 6. Run Locally
8791

8892
```bash
89-
# Run the agent with a query
93+
# Simply run the agent with a query
9094
uipath run agent '{"user_msg": "What are the travel rates for New York?"}'
9195
```
9296

97+
```bash
98+
# Run the agent in CLI dev mode (you can enter the input user message and look at traces)
99+
uipath dev
100+
```
101+
93102
### 7. Run as a UiPath Deployment
94103

95104
1. **Package your project:**
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
flowchart TD
2+
step__done["_done"]:::stepStyle
3+
step_aggregate_tool_results["aggregate_tool_results"]:::stepStyle
4+
step_call_tool["call_tool"]:::stepStyle
5+
step_init_run["init_run"]:::stepStyle
6+
step_parse_agent_output["parse_agent_output"]:::stepStyle
7+
step_run_agent_step["run_agent_step"]:::stepStyle
8+
step_setup_agent["setup_agent"]:::stepStyle
9+
event_StopEvent([<p>StopEvent</p>]):::stopEventStyle
10+
event_ToolCallResult([<p>ToolCallResult</p>]):::defaultEventStyle
11+
event_AgentInput([<p>AgentInput</p>]):::defaultEventStyle
12+
event_ToolCall([<p>ToolCall</p>]):::defaultEventStyle
13+
event_AgentWorkflowStartEvent([<p>AgentWorkflowStartEvent</p>]):::defaultEventStyle
14+
event_AgentOutput([<p>AgentOutput</p>]):::defaultEventStyle
15+
event_AgentSetup([<p>AgentSetup</p>]):::defaultEventStyle
16+
event_StopEvent --> step__done
17+
step_aggregate_tool_results --> event_AgentInput
18+
step_aggregate_tool_results --> event_StopEvent
19+
event_ToolCallResult --> step_aggregate_tool_results
20+
step_call_tool --> event_ToolCallResult
21+
event_ToolCall --> step_call_tool
22+
step_init_run --> event_AgentInput
23+
event_AgentWorkflowStartEvent --> step_init_run
24+
step_parse_agent_output --> event_StopEvent
25+
step_parse_agent_output --> event_AgentInput
26+
step_parse_agent_output --> event_ToolCall
27+
event_AgentOutput --> step_parse_agent_output
28+
step_run_agent_step --> event_AgentOutput
29+
event_AgentSetup --> step_run_agent_step
30+
step_setup_agent --> event_AgentSetup
31+
event_AgentInput --> step_setup_agent
32+
classDef stepStyle fill:#f2f0ff,line-height:1.2
33+
classDef externalStyle fill:#f2f0ff,line-height:1.2
34+
classDef defaultEventStyle fill-opacity:0
35+
classDef stopEventStyle fill:#bfb6fc
36+
classDef inputRequiredStyle fill:#f2f0ff,line-height:1.2
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[project]
22
name = "quickstart-llamacloud"
3-
version = "0.0.2"
3+
version = "0.0.4"
44
description = "UiPath LlamaIndex Quickstart with LlamaCloud Integration"
55
authors = [{ name = "Tuana Celik", email = "tuana@runllama.ai" }]
66
readme = { file = "README.md", content-type = "text/markdown" }
77
requires-python = ">=3.10"
88
dependencies = [
9-
"uipath-llamaindex>=0.0.11",
9+
"uipath-llamaindex>=0.0.33",
1010
"llama-index-llms-openai>=0.2.2",
1111
"llama-cloud-services"
1212
]

samples/quickstart-llamacloud/uipath.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"properties": {
2323
"response": {
2424
"title": "Agent Response",
25-
"type": "string",
25+
"type": "object",
2626
"description": "The agent's response using available tools to search company policies and personal preferences"
2727
}
2828
},

0 commit comments

Comments
 (0)