-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.lightrag
More file actions
44 lines (37 loc) · 1.53 KB
/
.env.lightrag
File metadata and controls
44 lines (37 loc) · 1.53 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
# =============================================================================
# LIGHTRAG CORE SETTINGS
# =============================================================================
# Non-essential overrides (titles, additional workspaces, etc.) now live in
# .env.optional.
# ref: https://github.com/HKUDS/LightRAG/blob/main/env.example
# Network binding so the API is reachable from other containers and the host.
HOST=0.0.0.0
PORT=9621
# CORS configuration for API subdomain access from chat subdomain
CORS_ORIGINS="https://chat.${PUBLISH_DOMAIN}"
WHITELIST_PATHS=/health,/api/*,/v1/*
# Directories inside the container that line up with mounted volumes.
INPUT_DIR=/app/data/inputs
WORKING_DIR=/app/data/rag_storage
LOG_DIR=/app/logs
# Required backend implementations that connect LightRAG to the shared services.
LIGHTRAG_KV_STORAGE=RedisKVStorage
LIGHTRAG_DOC_STATUS_STORAGE=RedisDocStatusStorage
LIGHTRAG_VECTOR_STORAGE=QdrantVectorDBStorage
LIGHTRAG_GRAPH_STORAGE=MemgraphStorage
# Connection settings for the supporting databases.
REDIS_HOST=kv
REDIS_PORT=6379
REDIS_URI=redis://:${REDIS_PASSWORD}@kv:6379
QDRANT_URL=http://vectors:6333
MEMGRAPH_URI=bolt://graph:7687
MEMGRAPH_USERNAME=${MEMGRAPH_USER:-admin}
MEMGRAPH_PASSWORD=${MEMGRAPH_PASSWORD:-admin}
# Default LLM and embedding providers that match the supplied API keys.
LLM_BINDING=openai
LLM_MODEL=gpt-4o-mini
LLM_BINDING_HOST=https://api.openai.com/v1
EMBEDDING_BINDING=openai
EMBEDDING_BINDING_HOST=https://api.openai.com/v1
EMBEDDING_MODEL=text-embedding-3-small
EMBEDDING_DIM=1536