Merge branch 'main' into optimize-config-management
# Conflicts: # env.example # lightrag/api/utils_api.py
This commit is contained in:
75
env.example
75
env.example
@@ -3,9 +3,11 @@
|
||||
### Server Configuration
|
||||
# HOST=0.0.0.0
|
||||
# PORT=9621
|
||||
# WORKERS=1
|
||||
# NAMESPACE_PREFIX=lightrag # separating data from difference Lightrag instances
|
||||
# MAX_GRAPH_NODES=1000 # Max nodes return from grap retrieval
|
||||
# WORKERS=2
|
||||
### separating data from difference Lightrag instances
|
||||
# NAMESPACE_PREFIX=lightrag
|
||||
### Max nodes return from grap retrieval
|
||||
# MAX_GRAPH_NODES=1000
|
||||
# CORS_ORIGINS=http://localhost:3000,http://localhost:8080
|
||||
|
||||
### Optional SSL Configuration
|
||||
@@ -13,7 +15,7 @@
|
||||
# SSL_CERTFILE=/path/to/cert.pem
|
||||
# SSL_KEYFILE=/path/to/key.pem
|
||||
|
||||
### Directory Configuration
|
||||
### Directory Configuration (defaults to current working directory)
|
||||
# WORKING_DIR=<absolute_path_for_working_dir>
|
||||
# INPUT_DIR=<absolute_path_for_doc_input_dir>
|
||||
|
||||
@@ -23,9 +25,10 @@
|
||||
### Logging level
|
||||
# LOG_LEVEL=INFO
|
||||
# VERBOSE=False
|
||||
# LOG_DIR=/path/to/log/directory # Log file directory path, defaults to current working directory
|
||||
# LOG_MAX_BYTES=10485760 # Log file max size in bytes, defaults to 10MB
|
||||
# LOG_BACKUP_COUNT=5 # Number of backup files to keep, defaults to 5
|
||||
# LOG_MAX_BYTES=10485760
|
||||
# LOG_BACKUP_COUNT=5
|
||||
### Logfile location (defaults to current working directory)
|
||||
# LOG_DIR=/path/to/log/directory
|
||||
|
||||
### Settings for RAG query
|
||||
# HISTORY_TURNS=3
|
||||
@@ -36,28 +39,37 @@
|
||||
# MAX_TOKEN_ENTITY_DESC=4000
|
||||
|
||||
### Settings for document indexing
|
||||
ENABLE_LLM_CACHE_FOR_EXTRACT=true # Enable LLM cache for entity extraction
|
||||
ENABLE_LLM_CACHE_FOR_EXTRACT=true
|
||||
SUMMARY_LANGUAGE=English
|
||||
# CHUNK_SIZE=1200
|
||||
# CHUNK_OVERLAP_SIZE=100
|
||||
# MAX_TOKEN_SUMMARY=500 # Max tokens for entity or relations summary
|
||||
# MAX_PARALLEL_INSERT=2 # Number of parallel processing documents in one patch
|
||||
### Max tokens for entity or relations summary
|
||||
# MAX_TOKEN_SUMMARY=500
|
||||
### Number of parallel processing documents in one patch
|
||||
# MAX_PARALLEL_INSERT=2
|
||||
|
||||
# EMBEDDING_BATCH_NUM=32 # num of chunks send to Embedding in one request
|
||||
# EMBEDDING_FUNC_MAX_ASYNC=16 # Max concurrency requests for Embedding
|
||||
### Num of chunks send to Embedding in single request
|
||||
# EMBEDDING_BATCH_NUM=32
|
||||
### Max concurrency requests for Embedding
|
||||
# EMBEDDING_FUNC_MAX_ASYNC=16
|
||||
# MAX_EMBED_TOKENS=8192
|
||||
|
||||
### LLM Configuration (Use valid host. For local services installed with docker, you can use host.docker.internal)
|
||||
TIMEOUT=150 # Time out in seconds for LLM, None for infinite timeout
|
||||
### LLM Configuration
|
||||
### Time out in seconds for LLM, None for infinite timeout
|
||||
TIMEOUT=150
|
||||
### Some models like o1-mini require temperature to be set to 1
|
||||
TEMPERATURE=0.5
|
||||
MAX_ASYNC=4 # Max concurrency requests of LLM
|
||||
MAX_TOKENS=32768 # Max tokens send to LLM (less than context size of the model)
|
||||
### Max concurrency requests of LLM
|
||||
MAX_ASYNC=4
|
||||
### Max tokens send to LLM (less than context size of the model)
|
||||
MAX_TOKENS=32768
|
||||
|
||||
### Ollama example (For local services installed with docker, you can use host.docker.internal as host)
|
||||
LLM_BINDING=ollama
|
||||
LLM_MODEL=mistral-nemo:latest
|
||||
LLM_BINDING_API_KEY=your_api_key
|
||||
### Ollama example
|
||||
LLM_BINDING_HOST=http://localhost:11434
|
||||
|
||||
### OpenAI alike example
|
||||
# LLM_BINDING=openai
|
||||
# LLM_MODEL=gpt-4o
|
||||
@@ -103,9 +115,10 @@ ORACLE_DSN=localhost:1521/XEPDB1
|
||||
ORACLE_USER=your_username
|
||||
ORACLE_PASSWORD='your_password'
|
||||
ORACLE_CONFIG_DIR=/path/to/oracle/config
|
||||
#ORACLE_WALLET_LOCATION=/path/to/wallet # optional
|
||||
#ORACLE_WALLET_PASSWORD='your_password' # optional
|
||||
#ORACLE_WORKSPACE=default # separating all data from difference Lightrag instances(deprecated, use NAMESPACE_PREFIX in future)
|
||||
#ORACLE_WALLET_LOCATION=/path/to/wallet
|
||||
#ORACLE_WALLET_PASSWORD='your_password'
|
||||
### separating all data from difference Lightrag instances(deprecating, use NAMESPACE_PREFIX in future)
|
||||
#ORACLE_WORKSPACE=default
|
||||
|
||||
### TiDB Configuration
|
||||
TIDB_HOST=localhost
|
||||
@@ -113,7 +126,8 @@ TIDB_PORT=4000
|
||||
TIDB_USER=your_username
|
||||
TIDB_PASSWORD='your_password'
|
||||
TIDB_DATABASE=your_database
|
||||
#TIDB_WORKSPACE=default # separating all data from difference Lightrag instances(deprecated, use NAMESPACE_PREFIX in future)
|
||||
### separating all data from difference Lightrag instances(deprecating, use NAMESPACE_PREFIX in future)
|
||||
#TIDB_WORKSPACE=default
|
||||
|
||||
### PostgreSQL Configuration
|
||||
POSTGRES_HOST=localhost
|
||||
@@ -121,7 +135,8 @@ POSTGRES_PORT=5432
|
||||
POSTGRES_USER=your_username
|
||||
POSTGRES_PASSWORD='your_password'
|
||||
POSTGRES_DATABASE=your_database
|
||||
#POSTGRES_WORKSPACE=default # separating all data from difference Lightrag instances(deprecated, use NAMESPACE_PREFIX in future)
|
||||
### separating all data from difference Lightrag instances(deprecating, use NAMESPACE_PREFIX in future)
|
||||
#POSTGRES_WORKSPACE=default
|
||||
|
||||
### Independent AGM Configuration(not for AMG embedded in PostreSQL)
|
||||
AGE_POSTGRES_DB=
|
||||
@@ -130,8 +145,9 @@ AGE_POSTGRES_PASSWORD=
|
||||
AGE_POSTGRES_HOST=
|
||||
# AGE_POSTGRES_PORT=8529
|
||||
|
||||
### separating all data from difference Lightrag instances(deprecating, use NAMESPACE_PREFIX in future)
|
||||
# AGE Graph Name(apply to PostgreSQL and independent AGM)
|
||||
# AGE_GRAPH_NAME=lightrag # deprecated, use NAME_SPACE_PREFIX instead
|
||||
# AGE_GRAPH_NAME=lightrag
|
||||
|
||||
### Neo4j Configuration
|
||||
NEO4J_URI=neo4j+s://xxxxxxxx.databases.neo4j.io
|
||||
@@ -141,7 +157,8 @@ NEO4J_PASSWORD='your_password'
|
||||
### MongoDB Configuration
|
||||
MONGO_URI=mongodb://root:root@localhost:27017/
|
||||
MONGO_DATABASE=LightRAG
|
||||
MONGODB_GRAPH=false # deprecated (keep for backward compatibility)
|
||||
### separating all data from difference Lightrag instances(deprecating, use NAMESPACE_PREFIX in future)
|
||||
# MONGODB_GRAPH=false
|
||||
|
||||
### Milvus Configuration
|
||||
MILVUS_URI=http://localhost:19530
|
||||
@@ -158,11 +175,11 @@ QDRANT_URL=http://localhost:16333
|
||||
REDIS_URI=redis://localhost:6379
|
||||
|
||||
### For JWT Auth
|
||||
AUTH_ACCOUNTS='admin:admin123,user1:pass456' # username:password,username:password
|
||||
TOKEN_SECRET=Your-Key-For-LightRAG-API-Server # JWT key
|
||||
#TOKEN_EXPIRE_HOURS=4 # Expire duration, default 4
|
||||
#GUEST_TOKEN_EXPIRE_HOURS=2 # Guest expire duration, default 2
|
||||
#JWT_ALGORITHM=HS256 # JWT encode algorithm, default HS256
|
||||
#AUTH_ACCOUNTS='admin:admin123,user1:pass456'
|
||||
#TOKEN_SECRET=Your-Key-For-LightRAG-API-Server
|
||||
#TOKEN_EXPIRE_HOURS=4
|
||||
#GUEST_TOKEN_EXPIRE_HOURS=2
|
||||
#JWT_ALGORITHM=HS256
|
||||
|
||||
### API-Key to access LightRAG Server API
|
||||
# LIGHTRAG_API_KEY=your-secure-api-key-here
|
||||
|
Reference in New Issue
Block a user