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
# knot — example environment configuration
#
# Copy this file to `.env` and fill in your values.
# When a `.env` file is present, its values take precedence over
# any command-line arguments passed to the binary.
#
# Usage:
# cp .env.example .env
# $EDITOR .env
# cargo run --release
# Absolute path to the repository root to be indexed.
KNOT_REPO_PATH=/path/to/your/repo
# --- Qdrant (Vector DB) ---
KNOT_QDRANT_URL=http://localhost:6334
KNOT_QDRANT_COLLECTION=knot_entities
# --- Neo4j (Graph DB) ---
KNOT_NEO4J_URI=bolt://localhost:7687
KNOT_NEO4J_USER=neo4j
KNOT_NEO4J_PASSWORD=knot_secret_password
# --- Optional: custom Tree-sitter query directory ---
# When set, java.scm and typescript.scm from this directory override
# the built-in queries compiled into the binary.
# KNOT_CUSTOM_QUERIES_PATH=/path/to/custom/queries
# --- Embedding model dimension (must match the fastembed model used) ---
# Default: 384 (AllMiniLML6V2)
KNOT_EMBED_DIM=384
# --- Number of entities per processing batch ---
KNOT_BATCH_SIZE=64
# --- Log level (trace | debug | info | warn | error) ---
RUST_LOG=info