-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
25 lines (19 loc) · 1.24 KB
/
.env.example
File metadata and controls
25 lines (19 loc) · 1.24 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
# ─── LLM Fallback (entity + relation extraction) ────────────────
# ctxgraph extracts locally via ONNX (GLiNER + GLiREL).
# When local confidence is low, it makes ONE LLM call.
# Set ONE of these API keys to enable the LLM fallback.
# Option 1: OpenAI (recommended — best quality with gpt-4o-mini)
OPENAI_API_KEY=
# Option 2: Anthropic (Claude models)
# ANTHROPIC_API_KEY=
# Option 3: OpenRouter (access to 200+ models)
# OPENROUTER_API_KEY=
# Option 4: Custom OpenAI-compatible endpoint (Ollama, LiteLLM, etc.)
# CTXGRAPH_LLM_KEY=
# CTXGRAPH_LLM_URL= # e.g. http://localhost:11434/v1/chat/completions
# CTXGRAPH_LLM_MODEL= # e.g. qwen2.5:7b
# ─── Storage ────────────────────────────────────────────────────
CTXGRAPH_DB= # default: .ctxgraph/graph.db
CTXGRAPH_MODELS_DIR= # default: ~/.cache/ctxgraph/models
# ─── Optional ───────────────────────────────────────────────────
# CTXGRAPH_NO_EMBED=1 # disable semantic search (FTS5 only)