-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.env.example
More file actions
80 lines (66 loc) · 3.45 KB
/
Copy path.env.example
File metadata and controls
80 lines (66 loc) · 3.45 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
# =============================================================================
# omem-server configuration
# Copy this file to .env and fill in the values
# =============================================================================
# ─── Server ──────────────────────────────────────────────────────────────────
OMEM_PORT=8080
RUST_LOG=info
# ─── Storage ─────────────────────────────────────────────────────────────────
# Choose ONE storage backend. If none is set, data is stored locally at ./omem-data/
# Option 1: Alibaba Cloud OSS
# Uses native oss:// scheme via OpenDAL — no S3 compatibility issues.
# OMEM_OSS_BUCKET=your-bucket
# OSS_ENDPOINT=https://oss-ap-southeast-1-internal.aliyuncs.com
# OSS_ACCESS_KEY_ID=your-ak
# OSS_ACCESS_KEY_SECRET=your-sk
# For ECS with RAM role: omit AK/SK, use wrapper script to inject STS credentials
# Option 2: AWS S3 or S3-compatible storage
# OMEM_S3_BUCKET=your-bucket
# AWS_REGION=us-east-1
# AWS_ENDPOINT_URL=https://s3.amazonaws.com
# AWS_ACCESS_KEY_ID=your-ak # omit for IAM role / instance profile
# AWS_SECRET_ACCESS_KEY=your-sk
# Option 3: Local MinIO (for development)
# OMEM_S3_BUCKET=omem-data
# AWS_ENDPOINT_URL=http://minio:9000
# AWS_ACCESS_KEY_ID=minioadmin
# AWS_SECRET_ACCESS_KEY=minioadmin
# AWS_REGION=us-east-1
# ─── Embedding Provider ─────────────────────────────────────────────────────
# Options: noop | openai-compatible | bedrock
OMEM_EMBED_PROVIDER=noop
# DashScope (Alibaba Cloud — recommended for China):
# OMEM_EMBED_PROVIDER=openai-compatible
# OMEM_EMBED_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode
# OMEM_EMBED_MODEL=text-embedding-v3
# OMEM_EMBED_API_KEY=sk-your-dashscope-key
# OpenAI:
# OMEM_EMBED_PROVIDER=openai-compatible
# OMEM_EMBED_BASE_URL=https://api.openai.com
# OMEM_EMBED_MODEL=text-embedding-3-small
# OMEM_EMBED_API_KEY=sk-your-openai-key
# AWS Bedrock (glibc build only):
# OMEM_EMBED_PROVIDER=bedrock
# AWS_REGION=us-east-1
# ─── LLM Provider (for Smart Ingest) ────────────────────────────────────────
# Options: (empty = disabled) | openai-compatible | bedrock
# Required for: smart extraction, fact reconciliation, import intelligence
# DashScope:
# OMEM_LLM_PROVIDER=openai-compatible
# OMEM_LLM_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode
# OMEM_LLM_MODEL=qwen-turbo
# OMEM_LLM_API_KEY=sk-your-dashscope-key
# OpenAI:
# OMEM_LLM_PROVIDER=openai-compatible
# OMEM_LLM_BASE_URL=https://api.openai.com
# OMEM_LLM_MODEL=gpt-4o-mini
# OMEM_LLM_API_KEY=sk-your-openai-key
# AWS Bedrock (glibc build only):
# OMEM_LLM_PROVIDER=bedrock
# OMEM_LLM_MODEL=anthropic.claude-3-haiku-20240307-v1:0
# AWS_REGION=us-east-1
# ─── Sharing limits ─────────────────────────────────────────────────────────
# Max memory IDs per batch-share / org-publish call (0 = unlimited).
OMEM_BATCH_SHARE_MAX=500
# Max memories processed per share-all / share-all-to-user call (0 = unlimited).
OMEM_SHARE_ALL_MAX=5000