Skip to content

Commit 08f7d5a

Browse files
committed
update rag example
Signed-off-by: Eric <eric@epsilla.com>
1 parent b6da3f4 commit 08f7d5a

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

examples/hello_epsilla_rag.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@
66
# 2. launch a new converstation with epsilla rag
77
# 3. send a query and wait the response from epsilla ragg
88

9+
import os
10+
911
from pyepsilla import cloud
1012

13+
EPSILLA_PROJECT_ID = os.getenv("EPSILLA_PROJECT_ID", "Your-Project-ID")
14+
EPSILLA_API_KEY = os.getenv("EPSILLA_API_KEY", "Your-Epsilla-API-Key")
15+
EPSILLA_RAGAPP_ID = os.getenv("EPSILLA_RAGAPP_ID", "Your-Epsilla-RAGAPP-ID")
16+
EPSILLA_CONVERSATION_ID = os.getenv("EPSILLA_CONVERSATION_ID", None)
17+
18+
1119
# Connect to Epsilla RAG, conversation_id is not a must
1220
client = cloud.RAG(
13-
project_id="**********",
14-
api_key="eps_**********",
15-
ragapp_id="**********",
16-
conversation_id="**********",
21+
project_id=EPSILLA_PROJECT_ID,
22+
api_key=EPSILLA_API_KEY,
23+
ragapp_id=EPSILLA_RAGAPP_ID,
24+
conversation_id=EPSILLA_CONVERSATION_ID,
1725
)
1826

1927
# Start a new conversation with RAG

0 commit comments

Comments
 (0)