-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
32 lines (27 loc) · 1.42 KB
/
Copy path.env.example
File metadata and controls
32 lines (27 loc) · 1.42 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
# =============================================
# LiteLLM 設定(助教提供,用於 Chat Completion)
# =============================================
LITELLM_API_KEY=your_api_key_here
LITELLM_BASE_URL=https://your-litellm-endpoint/
# =============================================
# Embedding Model 設定(三選一,擇一填寫)
# =============================================
# 選項 A(推薦):sentence-transformers 本地模型,完全免費,無需 API Key
# 只需 pip install sentence-transformers,程式會自動下載模型(首次約 80–420MB)
EMBEDDING_PROVIDER=sentence-transformers
EMBEDDING_MODEL=paraphrase-multilingual-MiniLM-L12-v2 # 中英文皆適合
# 選項 B:HuggingFace Inference API,免費額度,需免費申請 HF Token
# 至 https://huggingface.co/settings/tokens 申請(免費帳號即可)
# EMBEDDING_PROVIDER=huggingface
# EMBEDDING_MODEL=sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
# HF_TOKEN=hf_xxxxxx
# 選項 C:Ollama 本地部署(需先安裝 Ollama 並執行 ollama pull nomic-embed-text)
# EMBEDDING_PROVIDER=ollama
# EMBEDDING_MODEL=nomic-embed-text
# OLLAMA_BASE_URL=http://localhost:11434
# =============================================
# Vector DB 設定(依你選擇的 DB 填寫)
# =============================================
PGVECTOR_CONNECTION_STRING=postgresql://user:password@localhost:5432/ragdb
# 或
# CHROMA_PERSIST_DIR=./chroma_db