-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
59 lines (52 loc) · 1.06 KB
/
Copy pathconfig.yaml
File metadata and controls
59 lines (52 loc) · 1.06 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
# config.yaml
app:
name: "Document Intelligence API"
version: "1.0.0"
description: "AI-powered document analysis API"
database:
pool_size: 10
max_overflow: 20
pool_timeout: 30
pool_recycle: 3600
echo: false
anthropic:
model: "claude-3-5-sonnet-20241022"
max_tokens: 4096
temperature: 0.1
timeout: 60
max_retries: 3
retry_wait: 2
storage:
local:
path: "/app/data/uploads"
max_file_size_mb: 50
azure:
container: "documents"
max_file_size_mb: 50
auth:
api_key_prefix: "di_"
hash_rounds: 12
rate_limit:
requests: 10
window_seconds: 60
processing:
allowed_mime_types:
- "application/pdf"
- "text/plain"
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
- "image/png"
- "image/jpeg"
- "image/tiff"
ocr_language: "eng"
max_text_length: 100000
cors:
origins: ["*"]
allow_credentials: true
allow_methods: ["*"]
allow_headers: ["*"]
telemetry:
service_name: "document-intelligence-api"
sample_rate: 1.0
exporters:
- "prometheus"
- "azure_monitor"