Skip to content

Commit 3bd1560

Browse files
committed
feat: improving the security, flexibility, and maintainability of the code
Signed-off-by: rosenlo <rosenluov@gmail.com>
1 parent 45e49f7 commit 3bd1560

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,17 @@ The resp will contains answer as well as contexts, like {"answer": "****", "cont
180180
```python3
181181
from pyepsilla import cloud
182182

183+
epsilla_api_key = os.getenv("EPSILLA_API_KEY", "Your-Epsilla-API-Key")
184+
project_id = os.getenv("EPSILLA_PROJECT_ID", "Your-Project-ID")
185+
ragapp_id = os.getenv("EPSILLA_RAGAPP_ID", "Your-RAGAPP-ID")
186+
conversation_id = os.getenv("EPSILLA_CONVERSATION_ID", "Your-CONVERSATION-ID")
187+
183188
# 1.Connect to Epsilla RAG
184189
client = cloud.RAG(
185-
project_id="ce07c6fc-****-****-b7bd-b7819f22bcff",
186-
api_key="eps_**********",
187-
ragapp_id="153a5a49-****-****-b2b8-496451eda8b5",
188-
conversation_id="6fa22a6a-****-****-b1c3-5c795d0f45ef",
190+
project_id=project_id,
191+
api_key=epsilla_api_key,
192+
ragapp_id=ragapp_id,
193+
conversation_id=conversation_id,
189194
)
190195

191196
# 2.Start a new conversation with RAG

0 commit comments

Comments
 (0)