Skip to content

Commit 1b252a5

Browse files
committed
add sample vector store implementation using timeplus
1 parent cba29d7 commit 1b252a5

File tree

3 files changed

+404
-2
lines changed

3 files changed

+404
-2
lines changed

test_dist/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Ignore local configuration for superset
22
dev_config.py
3+
env.sh
34

45
# Ignore recommended symlink
56
clickhouse_connect

test_dist/llamaIndex_dbreader.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
from llama_index.readers.database import DatabaseReader
1+
import os
22
import timeplus_connect
33

4+
from llama_index.readers.database import DatabaseReader
5+
6+
7+
timeplus_host = os.getenv("TIMEPLUS_HOST") or "localhost"
8+
timeplus_user = os.getenv("TIMEPLUS_USER") or "proton"
9+
timeplus_password = os.getenv("TIMEPLUS_PASSWORD") or "timeplus@t+"
10+
411

512
# Ensure the timeplus-connect driver is registered
6-
TIMEPLUS_URI = "timeplus://user:password@localhost:8123"
13+
TIMEPLUS_URI = f"timeplus://{timeplus_user}:{timeplus_password}@{timeplus_host}:8123"
714
db_reader = DatabaseReader(
815
uri=TIMEPLUS_URI # Use the explicit SQLAlchemy engine
916
)

0 commit comments

Comments
 (0)