Repository navigation
Expand file tree
/
Copy pathenv.example
More file actions
98 lines (80 loc) · 3.74 KB
/
Copy pathenv.example
File metadata and controls
98 lines (80 loc) · 3.74 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#*****************************************************************
# LLM and Embedding Model
#*****************************************************************
LLM=qwen2.5-coder:1.5b #or any Ollama model tag, gpt-4, gpt-3.5, or claude
EMBEDDING_MODEL=sentence_transformer #or openai, ollama, or aws
#*****************************************************************
# Running outside the containers
#*****************************************************************
# Compose substitutes this file into the container environment, so a value that
# only makes sense on the host cannot live here. Put those in `.env.local`,
# which compose never reads and `load_settings` applies on top:
#
# NEO4J_URI=neo4j://localhost:7687 # `database` is a compose name
# EMBEDDING_MODEL_DIR=embedding_model
#
# That is what the eval and the extract/ingest CLIs need to run with a plain
# `python3 -m ...` instead of through a container.
#*****************************************************************
# Neo4j
#*****************************************************************
#NEO4J_URI=neo4j://database:7687
#NEO4J_USERNAME=neo4j
#NEO4J_PASSWORD=password
#*****************************************************************
# Code index
#*****************************************************************
# Symbols embedded and written to Neo4j per batch when importing.
#IMPORT_BATCH_SIZE=100
# Vectors are cached on disk by the text and model that produced them, so
# re-importing a repository only pays for the symbols that actually changed.
# Set to 0 to always call the embedding model.
#EMBEDDING_CACHE=1
#EMBEDDING_CACHE_PATH=.cache/embeddings.sqlite
#*****************************************************************
# API
#*****************************************************************
# Leave API_KEY empty for local development. When set, the API requires it in
# the X-API-Key header (or as an api_key query parameter on /query-stream,
# because EventSource cannot send headers).
#API_KEY=
#ALLOWED_ORIGINS=http://localhost:5173
#RATE_LIMIT_REQUESTS=30
#RATE_LIMIT_WINDOW_SECONDS=60
#VITE_API_BASE_URL=http://localhost:8504
#*****************************************************************
# Langchain
#*****************************************************************
# Optional for enabling Langchain Smith API
#LANGCHAIN_TRACING_V2=true # false
#LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
#LANGCHAIN_PROJECT=#your-project-name
#LANGCHAIN_API_KEY=#your-api-key ls_...
#*****************************************************************
# Ollama
#*****************************************************************
# The default expects Ollama running on the host. To run it as a container
# instead, uncomment both lines below - COMPOSE_PROFILES is what makes plain
# `docker compose up` start the llm service, and without it the hostname in
# OLLAMA_BASE_URL does not resolve.
#COMPOSE_PROFILES=linux
#OLLAMA_BASE_URL=http://llm:11434
#OLLAMA_BASE_URL=http://host.docker.internal:11434
#*****************************************************************
# OpenAI
#*****************************************************************
# Only required when using OpenAI LLM or embedding model
#OPENAI_API_KEY=sk-...
#*****************************************************************
# AWS
#*****************************************************************
# Only required when using AWS Bedrock LLM or embedding model
#AWS_ACCESS_KEY_ID=
#AWS_SECRET_ACCESS_KEY=
#AWS_DEFAULT_REGION=us-east-1
#*****************************************************************
# Repository cloning
#*****************************************************************
# Hosts the loader is allowed to clone from. Add a self-hosted GitHub/GitLab
# here if you need one.
#ALLOWED_GIT_HOSTS=github.com,gitlab.com,bitbucket.org