-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
51 lines (43 loc) · 2.08 KB
/
Copy path.env.example
File metadata and controls
51 lines (43 loc) · 2.08 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
# 127.0.0.1 on purpose (not `localhost`): on Windows `localhost` can resolve
# to ::1 first while the containers publish IPv4-only ports — including when
# docker runs inside WSL2 — which hangs the HTTP clients.
OLLAMA_URL=http://127.0.0.1:11434
EMBED_MODEL=bge-m3
EMBED_DIM=1024
QDRANT_URL=http://127.0.0.1:6333
QDRANT_COLLECTION_CODE=code_chunks
QDRANT_COLLECTION_EPISODES=episodes
FALKOR_HOST=127.0.0.1
FALKOR_PORT=6379
FALKOR_GRAPH=code_graph
EPISODIC_DB=./data/episodic.db
CLAIMS_DB=./data/claims.db
DATA_DIR=./data
# Optional: force a project slug instead of auto-detecting from git/cwd.
# CODE_MEMORY_PROJECT=opencode
# --- Embedding backend ---------------------------------------------------
# `ollama` (default) — dense-only via the Ollama daemon. Stays warm
# across short-lived CLI processes (per-save hooks, git hooks).
# `flagembed` — in-process BGE-M3 via FlagEmbedding. Emits dense + sparse
# from one forward pass; enables hybrid search but pays a
# ~5-15s cold load per Python process. Requires the `hybrid`
# extra (`uv sync --extra hybrid`).
# EMBED_BACKEND=ollama
# Opt-in hybrid (dense + sparse RRF) retrieval. Only effective when
# EMBED_BACKEND=flagembed AND chunks have been re-ingested under that
# backend so the sparse slot is populated.
# CODEMEMORY_HYBRID=1
# Cross-encoder rerank. `auto` (default) enables only on Metal/CUDA;
# CPU-only hosts stay on bi-encoder. Requires the `rerank` extra.
# CODEMEMORY_RERANK=auto
# CODEMEMORY_RERANK_ALPHA=0.5
# CODEMEMORY_RERANK_MODEL=BAAI/bge-reranker-v2-m3
# Removed: LLM-based claim extraction (previously CLAIMS_EXTRACTION /
# CLAIMS_LLM_MODEL / CLAIMS_LLM_TIMEOUT / CLAIMS_MIN_CONFIDENCE).
# The extraction path was removed in favor of agent-authored claims
# via the codememory_assert_claim tool, which requires no external
# model or Ollama dependency.
# Cosine threshold for the entity resolver to reuse an existing entity
# instead of creating a new one. Lower → more merging (risk of
# false-merge); higher → more entities (risk of duplication).
# CLAIMS_ENTITY_THRESHOLD=0.85