Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
36 lines (30 loc) · 1.4 KB
/
Copy path.env.example
File metadata and controls
36 lines (30 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
# Real embeddings + contradiction-classification need ONE of the three
# below. Tried in this order — set only one, or DASHSCOPE takes priority.
# 1) Qwen via Alibaba Cloud Model Studio (OpenAI-compatible). Claim the $40
# hackathon voucher. Required specifically for the Qwen Cloud Hackathon
# submission — KYC identity verification during signup, budget days not
# hours. Everything else that just consumes Cortex should use option 2.
DASHSCOPE_API_KEY=
# Optional: international endpoint is the default; set for mainland China.
# DASHSCOPE_BASE_URL=https://dashscope-intl.aliyuncs.com/compatible-mode/v1
# 2) Plain OpenAI. No identity verification — an API key is available within
# minutes of signing up at platform.openai.com. The practical unblock for
# anything that needs real embeddings/contradiction-detection working
# NOW and isn't itself bound to the Qwen hackathon's requirements.
OPENAI_API_KEY=
# 3) Any other OpenAI-compatible endpoint (set both).
# CORTEX_MODEL_API_KEY=
# CORTEX_MODEL_BASE_URL=
# Models — leave unset to get sensible per-provider defaults (Qwen models
# for DashScope, gpt-4o-mini/text-embedding-3-small for OpenAI/generic).
# CORTEX_CHAT_MODEL=
# CORTEX_EXTRACT_MODEL=
# CORTEX_EMBED_MODEL=
# Engine tuning
CORTEX_STORE_DIR=./data
CORTEX_HALF_LIFE_HOURS=72
CORTEX_FORGET_THRESHOLD=0.15
CORTEX_SALIENCE_K=12
# API
CORTEX_CORS_ORIGINS=*
CORTEX_MAX_CONTENT_LEN=2000