File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
911from 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
1220client = 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
You can’t perform that action at this time.
0 commit comments