-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy path.env.example
More file actions
98 lines (80 loc) · 3.07 KB
/
.env.example
File metadata and controls
98 lines (80 loc) · 3.07 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Tiledesk LLM Environment Variables
# Copy this file to .env and fill in the values for your local development.
# --- Application Profile ---
# Select the profile to run: 'app-base', 'app-graph', 'app-ocr', 'app-all'
# When set, this automatically enables the appropriate modules
# If set, individual module flags below are ignored
TILELLM_PROFILE="app-base"
# --- Module Configuration (only used if TILELLM_PROFILE is not set) ---
# Set to 'true' to enable each module
ENABLE_TASKIQ="true"
ENABLE_GRAPHRAG="false"
ENABLE_GRAPHRAG_FALKOR="true"
ENABLE_RAPTOR="false"
ENABLE_PDF_OCR="false"
ENABLE_CONVERSION="true"
ENABLE_TOOLS_REGISTRY="true"
# --- Redis Configuration ---
REDIS_URL="redis://localhost:6379/0"
# --- Neo4j Configuration (for Knowledge Graph) ---
NEO4J_URI="bolt://localhost:7687"
NEO4J_USERNAME="neo4j"
NEO4J_PASSWORD="your-neo4j-password"
NEO4J_DATABASE="neo4j"
# --- FalkorDB Configuration (alternative Graph Database) ---
# FalkorDB runs on port 6380 by default (separate from Redis on 6379)
FALKORDB_URI="redis://localhost:6380/0" # Optional, defaults to REDIS_URL (port 6379)
FALKORDB_MAX_CONNECTIONS="50"
FALKORDB_SOCKET_TIMEOUT="30.0"
FALKORDB_SOCKET_CONNECT_TIMEOUT="10.0"
FALKORDB_SOCKET_KEEPALIVE="True"
FALKORDB_RETRY_ON_TIMEOUT="True"
# --- MinIO Configuration (for GraphRAG artifact storage) ---
MINIO_ENDPOINT="localhost:9000"
MINIO_ACCESS_KEY="minioadmin"
MINIO_SECRET_KEY="minioadmin"
MINIO_SECURE="False"
MINIO_GRAPHRAG_BUCKET="graphrag"
MINIO_TABLES_BUCKET="document-tables"
MINIO_IMAGES_BUCKET="document-images"
MINIO_PDFS_BUCKET="ocr-pdfs"
# --- TEI (Text Embeddings Inference) Configuration ---
TEI_EMBEDDING_URL="http://localhost:7580"
TEI_EMBEDDING_API_KEY=""
TEI_EMBEDDING_MODEL="intfloat/multilingual-e5-large-instruct"
TEI_SPARSE_ENCODER_URL="http://localhost:7380"
TEI_SPARSE_ENCODER_API_KEY=""
TEI_SPARSE_ENCODER_MODEL="naver/efficient-splade-VI-BT-large-query"
TEI_RERANKER_URL="http://localhost:7480"
TEI_RERANKER_API_KEY=""
TEI_RERANKER_MODEL="BAAI/bge-reranker-large"
# --- Application Settings ---
# Role for the LLM worker ('api' or 'train')
TILELLM_ROLE="api"
LOG_LEVEL="INFO"
# Enable profiler (True/False)
ENABLE_PROFILER="False"
# Redis Queue Name (for OCR processing)
REDIS_QUEUE_NAME="tiledesk_ocr_queue"
# --- JWT Secret Key ---
JWT_SECRET_KEY="your-secret-key-of-256-bit"
# --- RAPTOR Configuration (Hierarchical Summarization) ---
RAPTOR_CLUSTER_SIZE="5"
RAPTOR_MAX_LEVELS="3"
RAPTOR_MIN_PAGES="10"
RAPTOR_ENABLED_DOC_TYPES="accademico,tecnico,legale,scientifico"
RAPTOR_SUMMARY_MAX_TOKENS="512"
RAPTOR_SUMMARY_TEMPERATURE="0.3"
RAPTOR_RETRIEVAL_STRATEGY="collapsed_tree"
RAPTOR_TOP_K_PER_LEVEL="3"
RAPTOR_USE_RRF="true"
RAPTOR_RRF_K="60"
# RAPTOR Clustering (optional, requires: poetry install --extras "raptor")
RAPTOR_CLUSTERING_METHOD="raptor" # "raptor" (UMAP+GMM) or "sequential"
RAPTOR_CLUSTERING_DIM="10" # UMAP reduction dimension
RAPTOR_CLUSTERING_THRESHOLD="0.1" # GMM probability threshold
RAPTOR_CLUSTERING_VERBOSE="false"
# RAPTOR Hybrid Search
RAPTOR_USE_HYBRID="false"
RAPTOR_HYBRID_ALPHA="0.7"
RAPTOR_SPARSE_ENCODER="splade"