We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 001404f commit d8b170cCopy full SHA for d8b170c
1 file changed
examples/hello_epsilla.py
@@ -7,15 +7,18 @@
7
# 3. python3 simple_example.py
8
#
9
10
+import os
11
+
12
from pyepsilla import vectordb
13
14
# Connect to Epsilla VectorDB
15
client = vectordb.Client(protocol="http", host="127.0.0.1", port="8888")
16
17
-DB_NAME = "MyDB"
-DB_PATH = "/data/epsilla_demo"
18
-TABLE_NAME = "MyTable"
+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
22
23
# Load DB with path
24
# pay attention to change db_path to persistent volume for production environment
0 commit comments