Skip to content

Commit 6ec0d7d

Browse files
authored
Merge branch 'refactor' into documet-rag-refactor
2 parents 7950de3 + 51cc1fd commit 6ec0d7d

50 files changed

Lines changed: 1504 additions & 1036 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.env.example‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ HTTP_PORT=3000
55
# gRPC Server
66
GRPC_HOST=127.0.0.1
77
GRPC_PORT=50051
8-
# required
9-
GRPC_ROOT_PASSWORD=your-secure-password
8+
9+
# API keys used by both the HTTP and gRPC servers (required)
10+
# See keys.example.json for the file format
11+
VORTEXDB_KEYS_FILE=./keys.json
1012

1113
# Database Configuration
1214
# Storage: inmemory, rocksdb

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.TODO
88
/databases
99
.env
10+
/keys.json
1011
__pycache__/
1112
build/
1213
.venv/

‎README.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,23 @@ cp .env.example .env
6767
```
6868

6969
The following env vars are important, and are required to be set by the user:
70-
`GRPC_ROOT_PASSWORD`
70+
`VORTEXDB_KEYS_FILE`
7171
`DIMENSION`
7272
`DATA_PATH`
7373

7474
**NOTE**: `DATA_PATH` is the directory within the container where persistent data is stored
7575

76+
**NOTE**: `VORTEXDB_KEYS_FILE` points to a JSON file of API keys shared by both the HTTP and gRPC servers, e.g.:
77+
```json
78+
{
79+
"keys": [
80+
{ "name": "admin", "role": "readwrite", "key": "some-random-secret" },
81+
{ "name": "search-service", "role": "readonly", "key": "another-random-secret" }
82+
]
83+
}
84+
```
85+
Requests authenticate with an `api-key: <key>` header over HTTP, or an `authorization: Bearer <key>` header over gRPC. `readonly` keys can read/search but not insert, batch-insert, or delete; `readwrite` keys can do all of the above. See `keys.example.json`.
86+
7687

7788
Setting of the following env vars is optional, as they fallback to safe defaults, but recommended:
7889
| .env Var | Function | Safe Default |

‎client/python/USAGE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pip install -e .
1818
The client communicates with VortexDB over gRPC and requires:
1919

2020
- gRPC endpoint (host:port)
21-
- API key (maps to `GRPC_ROOT_PASSWORD` on the server)
21+
- API key (must match a `key` entry in the server's `VORTEXDB_KEYS_FILE`)
2222

2323
These can be provided either:
2424

0 commit comments

Comments
 (0)