Skip to content

Commit d8b170c

Browse files
committed
update
1 parent 001404f commit d8b170c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

examples/hello_epsilla.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@
77
# 3. python3 simple_example.py
88
#
99

10+
import os
11+
1012
from pyepsilla import vectordb
1113

1214
# Connect to Epsilla VectorDB
1315
client = vectordb.Client(protocol="http", host="127.0.0.1", port="8888")
1416

1517

16-
DB_NAME = "MyDB"
17-
DB_PATH = "/data/epsilla_demo"
18-
TABLE_NAME = "MyTable"
18+
DB_NAME = os.getenv("DB_NAME", "MyDB")
19+
DB_PATH = os.getenv("DB_PATH", "/tmp/epsilla_demo")
20+
TABLE_NAME = os.getenv("TABLE_NAME", "MyTable")
21+
1922

2023
# Load DB with path
2124
# pay attention to change db_path to persistent volume for production environment

0 commit comments

Comments
 (0)