-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
50 lines (41 loc) · 1.4 KB
/
env.example
File metadata and controls
50 lines (41 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
# QuickDoc Configuration File
# Copy this file to .env and modify values as needed
# ===== BASIC SERVER CONFIGURATION =====
PORT=8005
MAX_FILE_SIZE_MB=15
LOG_LEVEL=INFO
# ===== FEATURE FLAGS =====
# Enable/disable major components to save resources
ENABLE_SUMMARIZATION=true
ENABLE_EMBEDDING_MODEL=true
ENABLE_TOKEN_COUNTING=true
ENABLE_DOCUMENT_PROCESSING=true
# ===== DOCUMENT PROCESSING FEATURES =====
# Fine-grained control over document processing
ENABLE_PDF_PROCESSING=true
ENABLE_DOCX_PROCESSING=true
ENABLE_IMAGE_OCR=true
ENABLE_MARKDOWN_PROCESSING=true
# ===== AI MODEL CONFIGURATION =====
# Specify which models to use (Hugging Face model names)
SUMMARIZATION_MODEL=google/flan-t5-small
EMBEDDING_MODEL=all-MiniLM-L6-v2
# ===== EXTERNAL SERVICE TOKENS =====
# Optional tokens for enhanced functionality
# HUGGING_FACE_HUB_TOKEN=your_token_here
# ===== ADVANCED CONFIGURATION =====
# Summarization service settings
SUMMARIZATION_TIMEOUT=300
MAX_SUMMARIZATION_QUEUE_SIZE=100
# ===== RESOURCE-CONSTRAINED DEPLOYMENT EXAMPLES =====
# Example 1: Minimal deployment (text extraction only)
# ENABLE_SUMMARIZATION=false
# ENABLE_EMBEDDING_MODEL=false
# ENABLE_TOKEN_COUNTING=false
# ENABLE_IMAGE_OCR=false
# Example 2: PDF-only processing
# ENABLE_DOCX_PROCESSING=false
# ENABLE_IMAGE_OCR=false
# ENABLE_MARKDOWN_PROCESSING=false
# Example 3: AI-only deployment (no document processing)
# ENABLE_DOCUMENT_PROCESSING=false