-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevabase.toml
More file actions
60 lines (51 loc) · 1.4 KB
/
devabase.toml
File metadata and controls
60 lines (51 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Devabase Configuration
[server]
host = "0.0.0.0"
port = 9002
ui_enabled = true
[database]
url = "${DATABASE_URL}"
max_connections = 20
run_migrations = true
[storage]
driver = "local"
path = "./data/files"
max_file_size = "100MB"
[vector]
default_dimensions = 768 # Match your embedding model's output (sroberta-multitask = 768)
default_metric = "cosine"
index_type = "hnsw"
[embedding]
# Supported providers: "openai", "ollama", "custom"
#
# For OpenAI:
# provider = "openai"
# api_key = "${OPENAI_API_KEY}"
# model = "text-embedding-3-small" # or text-embedding-3-large, text-embedding-ada-002
#
# For Custom embedding service (OpenAI-compatible API):
# provider = "custom"
# base_url = "http://your-host:port/api/v1"
# api_key = "your-api-key" # sent as X-API-KEY header
# model = "your-model-name"
# Endpoint called: POST {base_url}/{model}/embeddings
#
#provider = "openai"
#api_key = "${OPENAI_API_KEY}"
#model = "text-embedding-3-small"
#batch_size = 100
provider = "custom"
api_key = "sk-d7a20eb034c847e8994e192b40c69a61" # Optional, sent as X-API-KEY header
base_url = "http://gpu-local.sovanreach.com:9020/api/v1"
model = "sroberta-multitask"
[chunking]
default_strategy = "markdown"
chunk_size = 256 # Reduced for 128 token limit (~4 chars/token)
chunk_overlap = 32
[cache]
enabled = true
ttl_seconds = 86400
[auth]
jwt_secret = "${JWT_SECRET}"
api_key_prefix = "dvb_"
token_expiry_hours = 24