File tree Expand file tree Collapse file tree
src/uipath_llamaindex/_cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[project ]
22name = " uipath-llamaindex"
3- version = " 0.0.35 "
3+ version = " 0.0.36 "
44description = " UiPath LlamaIndex SDK"
55readme = { file = " README.md" , content-type = " text/markdown" }
66requires-python = " >=3.10"
@@ -9,7 +9,7 @@ dependencies = [
99 " llama-index-embeddings-azure-openai>=0.3.8" ,
1010 " llama-index-llms-azure-openai>=0.3.2" ,
1111 " openinference-instrumentation-llama-index>=4.3.0" ,
12- " uipath>=2.1.36 , <2.2.0" ,
12+ " uipath>=2.1.54 , <2.2.0" ,
1313]
1414classifiers = [
1515 " Development Status :: 3 - Alpha" ,
Original file line number Diff line number Diff line change 11import json
22
3- from dotenv import load_dotenv
43from llama_index .core .agent .workflow import AgentWorkflow
54from llama_index .core .workflow import (
65 Context ,
109
1110from uipath_llamaindex .models import CreateActionEvent
1211
13- load_dotenv ()
14-
1512llm = OpenAI (model = "gpt-4o-mini" )
1613
1714
Original file line number Diff line number Diff line change 11import json
22
3- from dotenv import load_dotenv
43from llama_index .core .agent .workflow import AgentWorkflow
54from llama_index .core .workflow import (
65 Context ,
109
1110from uipath_llamaindex .models import InvokeProcessEvent
1211
13- load_dotenv ()
14-
1512llm = OpenAI (model = "gpt-4o-mini" )
1613
1714
Original file line number Diff line number Diff line change 11import os
22
3- from dotenv import load_dotenv
43from llama_cloud_services import LlamaCloudIndex
54from llama_index .core .agent .workflow import FunctionAgent
65from llama_index .llms .openai import OpenAI
76from pydantic import BaseModel , Field
87
9- load_dotenv ()
10-
118# Initialize LlamaCloud Index connections
129company_policy_index = LlamaCloudIndex (
1310 name = os .getenv ("LLAMACLOUD_INDEX_1_NAME" ),
Original file line number Diff line number Diff line change 88from pathlib import Path
99from typing import Any , Dict , List , Optional
1010
11- from dotenv import load_dotenv
1211from llama_index .core .workflow import Workflow
1312
1413logger = logging .getLogger (__name__ )
@@ -135,18 +134,6 @@ def load_config(self) -> Dict[str, Any]:
135134 f"Missing required fields in llama_index.json: { missing_fields } "
136135 )
137136
138- if env_file := config .get ("env" ):
139- env_path = os .path .abspath (os .path .normpath (env_file ))
140- if os .path .exists (env_path ):
141- if not load_dotenv (env_path ):
142- # log warning only if dotenv is not empty
143- if os .path .getsize (env_path ) > 0 :
144- logger .warning (
145- f"Could not load environment variables from { env_path } "
146- )
147- else :
148- logger .debug (f"Loaded environment variables from { env_path } " )
149-
150137 self ._config = config
151138 self ._load_workflows ()
152139 return config
Original file line number Diff line number Diff line change 33from os import environ as env
44from typing import Optional
55
6- from dotenv import load_dotenv
76from openinference .instrumentation .llama_index import (
87 LlamaIndexInstrumentor ,
98 get_current_span ,
1817from ._utils ._config import LlamaIndexConfig
1918
2019logger = logging .getLogger (__name__ )
21- load_dotenv ()
2220
2321
2422def llamaindex_run_middleware (
You can’t perform that action at this time.
0 commit comments