Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

chore(env+docker-compose): fixed docker compose run + added new example envs

Christian45178b115c02
diff --git a/.env.example b/.env.example
index 6570596..3ec65df 100644
--- a/.env.example
+++ b/.env.example
@@ -52,4 +52,37 @@ BRAINPAT_TOKEN="your_token"
# Choose to allow or block automatic creation of new brains on requests with non existing new brain_ids
BRAIN_CREATION_ALLOWED="true"
# Choose whether to fallback to default brain if not provided
-DEFAULT_BRAIN_FALLBACK="true"
\ No newline at end of file
+DEFAULT_BRAIN_FALLBACK="true"
+
+# GCP
+# Used on the oss project for the small LLM but can be changed to any other model
+GCP_EXTRA_SMALL_LLM_MODEL="gemini-2.5-flash-lite"
+GCP_SMALL_LLM_MODEL="gemini-3-flash-preview"
+GCP_PROJECT_ID="your-project-id"
+GCP_CREDENTIALS_PATH=".path-to-credentials-file.json"
+
+# Celery
+# Used to run the worker tasks
+CELERY_WORKER_CONCURRENCY=4
+
+# Pricing
+# Used to calculate the pricing of the LLM calls
+INPUT_TOKEN_PRICE=0.0000005
+OUTPUT_TOKEN_PRICE=0.000003
+
+# Graph Consolidator
+# Used to consolidate the graph after ingestion of new data with a high level overview of the graph
+RUN_GRAPH_CONSOLIDATOR="true"
+
+# DocParser
+# Used to parse the documents into markdown text
+# and by forwarding the webhook (our app host) and the task identifier,
+# we can be called back from the DocParser API to start the ingestion process
+# with the created markdown text.
+DOCPARSER_ENDPOINT="https://docparser.lumen-labs.ai"
+APP_HOST="https://your-app-host.com/ingest"
+DOCPARSER_TOKEN="your-docparser-token"
+
+# Spacy
+# Used to keep the spacy models in memory or reinitialize them on each request
+SPACY_KEEP_MODELS_IN_MEMORY="true"
\ No newline at end of file
diff --git a/example-docker-compose.yaml b/example-docker-compose.yaml
index fdc3e32..22d0fb1 100644
--- a/example-docker-compose.yaml
+++ b/example-docker-compose.yaml
@@ -175,22 +175,15 @@ services:
- "8000:8000"
env_file:
- .env
- command:
- - "-m"
- - "uvicorn"
- - "src.services.api.app:app"
- - "--host"
- - "0.0.0.0"
- - "--port"
- - "8000"
- - "--workers"
- - "4"
- - "--timeout-keep-alive"
- - "30"
- - "--limit-concurrency"
- - "200"
- - "--backlog"
- - "2048"
+ command: >
+ /app/.venv/bin/python
+ src.services.api.app:app
+ --host 0.0.0.0
+ --port 8000
+ --workers 4
+ --timeout-keep-alive 30
+ --limit-concurrency 200
+ --backlog 2048
depends_on:
redis:
condition: service_healthy