The practical configuration guide

One file.
A setup that
feels like yours.

Your .env file tells Smart Semantic Searcher where to connect, which models to use and who can get in. Start with the few settings that matter. Look up the rest when you need them.

Anatomy of a setting.env
# Run the models on this computer's CPU
STACK_PROFILE=cpu
# A commentA note for you. The application ignores this line.STACK_PROFILEThe setting's name. Keep its spelling exactly as shown.=cpuThe value you choose. Here, the hardware is CPU.
The examples here are explanations. This page does not read, save or validate your real .env file, and it never asks for your keys.

Windows examples use PowerShell 7 (pwsh). In Windows PowerShell 5.1, use .\stack.ps1 in place of pwsh stack.ps1.

01 / The file itself

A small edit.
A clear intention.

Keep the full template as your starting point. You only need to change the settings that apply to your installation.

01 / Make your copy

Keep the template intact.

.env.example is the shared reference. .env is your private working copy. Keep both at the root, next to stack.ps1 and stack.sh.

If you already have .env, edit that file. Do not overwrite your existing connection details and keys with a fresh template.

02 / Edit plain text

One name. One value.

Use a plain-text editor. Keep one NAME=value assignment per line, with no spaces around =. Use lowercase true and false for switches.

A leading # disables an assignment. Uncomment an optional setting only when you intend to override its normal behaviour. An empty value is not always the same as an omitted setting.

03 / Save deliberately

A file, not a document.

Save as UTF-8 with the exact name .env, not .env.txt. Enable hidden files and file extensions if you cannot see it.

Keep comments on separate lines while learning. Avoid duplicate assignments. If a value contains special characters, follow the template’s quoting format rather than guessing.

Create your copy only if it does not already exist

Windows · PowerShell 7
if (-not (Test-Path -LiteralPath .env)) { Copy-Item .env.example .env }
Linux / macOS · Bash
if [ ! -e .env ]; then cp .env.example .env; fi

You do not need to activate a Python environment or install the model libraries on your computer for Docker startup. The launchers need Python for planning; the service libraries are built into their containers.

02 / Start with these choices

Make the first run
easy to understand.

For a first local console experience, these six choices give you an explicit CPU + basic setup.

A first console setup · edit these lines in .env

CPU. Basic models.
The search console.

STACK_PROFILE=cpu
SMART_EMBEDDER_PROFILE=basic
EMBEDDER_ONLY=false
MCP_SERVER_ENABLED=false
EXPOSE_FRONTEND=true
EXPOSE_SMART_EMBEDDER_PORT=false

This is a small set of changes to the full template, not a replacement .env file. Configure Qdrant and access below before using real data.

  1. Where the models run: cpu needs no NVIDIA GPU. Use gpu only when NVIDIA support is available to Docker.
  2. Which models: basic uses BGE; advanced uses Qwen + MILCO. Advanced works on CPU too, but is a larger starting point.
  3. Which interface: keep the full application and console. Leave MCP out until you need an AI-agent connection.
  4. How models are reached: the middleware reaches Smart Embedder privately. Publishing a separate model-service port is unnecessary for console use.

The unedited template chooses GPU + advanced, includes MCP, shows the console and publishes the embedder port. The values on the left are a deliberate alternative.

03 / Your database connection

Tell the app where
your documents will live.

Qdrant holds the collections. The application needs a reachable address and, when required, that database’s own key.

Qdrant on this Docker host

Keep the host address.

If Qdrant is already running on this computer and reachable from Docker, the supplied value is:

QDRANT_URL=http://host.docker.internal:6333

The hostname means “the Docker host” from the middleware container. Qdrant must actually be reachable there; an address that opens in your browser alone does not prove container access.

Qdrant on another machine

Use its service URL.

Set QDRANT_URL to the exact HTTP(S) endpoint supplied for that instance. Include the port if its operator specifies one.

If it requires a key, put that instance’s key in QDRANT_API_KEY. Keep the key out of the URL. Network rules must allow the middleware to reach the endpoint.

No Qdrant instance yet

Let the stack start one.

Set QDRANT_BUNDLED=true and a QDRANT_API_KEY (section 05). The launcher then runs a Qdrant container next to the middleware, reachable from this computer only at QDRANT_PORT, with its data in a Docker volume.

Prefer a separate instance? The official Qdrant quickstart ↗ covers one. Its database access and storage need their own configuration.

Understand the service setup ↗

If the model service is healthy but the console still reports a database connection error, check Qdrant’s running state, address, key and container reachability. Repeatedly changing model settings will not repair that connection.

04 / Before using real data

Decide who
can get in.

An API token is a secret key. The label identifies its owner; each service has its own keys and the services have separate keys for talking to one another.

You → Search app

Your console key

MIDDLEWARE_API_TOKENS lists the keys for console/API users. Register only the secret part in the console’s API key field.

Agent → MCP

Your agent’s key

MCP_API_TOKENS lists static keys for MCP clients. This is a different service, with different secrets.

App → Database

Your Qdrant key

QDRANT_API_KEY comes from the database installation. It is neither the console key nor the MCP key.

Protect a full stack in four steps.

  1. Create separate random secrets. For the full stack in static mode, prepare five distinct values with a password manager or another secure generator: one for each service’s token list, plus the two service-to-service credentials below. Keep the Qdrant key separate too.
  2. Fill the three token lists. Each entry is secret:label. A label such as alice identifies the user; it is not part of the secret. Add more users as comma-separated entries. Labels use letters, digits, dots, underscores or hyphens; never start one with @.
  3. Connect the services. MIDDLEWARE_CLIENT_TOKEN is what MCP sends to the middleware. SMART_EMBEDDER_CLIENT_TOKEN is what the middleware sends to Smart Embedder. Each is accepted by its target automatically; enter it once, without a label.
  4. Disable unauthenticated access. Set all three *_ALLOW_UNAUTHENTICATED_LOCAL switches to false. Save, verify and apply the file with the steps below. Register your middleware secret in the console.
Format illustration · not usable credentials

Different doors.
Different keys.

MIDDLEWARE_API_TOKENS=<unique-console-secret>:alice
SMART_EMBEDDER_API_TOKENS=<unique-direct-model-secret>:operator
MCP_API_TOKENS=<unique-agent-secret>:agent

MIDDLEWARE_CLIENT_TOKEN=<unique-mcp-to-app-secret>
SMART_EMBEDDER_CLIENT_TOKEN=<unique-app-to-model-secret>

MIDDLEWARE_ALLOW_UNAUTHENTICATED_LOCAL=false
SMART_EMBEDDER_ALLOW_UNAUTHENTICATED_LOCAL=false
MCP_ALLOW_UNAUTHENTICATED_LOCAL=false

Replace every bracketed value with your own different secret. Do not use the illustration literally. The three services must not accept the same credential; startup verification rejects overlaps.

Keep .env private. Share a redacted description of a problem, not the file or a screenshot containing keys.

I do not use MCP. Which credentials matter now?

With MCP_SERVER_ENABLED=false, the MCP service is absent and its inbound token list is not checked. Protect the middleware and Smart Embedder, and set SMART_EMBEDDER_CLIENT_TOKEN for their connection.

When you enable MCP later, provision its static token list and MIDDLEWARE_CLIENT_TOKEN before starting it against an authenticated middleware. A disabled service is not proof its saved configuration is ready to be enabled.

Does a private embedder replace authentication?

EXPOSE_SMART_EMBEDDER_PORT=false removes the direct host port. The middleware still reaches Smart Embedder inside the Docker network. This exposure choice is separate from authentication; configure the service credentials as well.

The console still uses the middleware port. To understand the boundary, read the private-network explanation.

05 / Put an edit into effect

Save. Check.
Apply the new settings.

Editing the file does not immediately change running containers. Use this sequence after saving a configuration change.

  1. Save and verify.

    The launchers read settings; they do not repair or rewrite your file. Resolve any named configuration error first. Verification does not connect to Qdrant or load the models.

    Run from the repository root

    Windows · PowerShell 7
    pwsh stack.ps1 verify
    Linux / macOS · Bash
    bash stack.sh verify
  2. Preview the effective setup.

    Use the dry-run option to see the saved setup that would be applied. This example omits hardware/model arguments deliberately, so your configured choices are used.

    Which value wins? Command line first, then the terminal’s environment, then .env, then built-in defaults. A command-line CPU choice can override GPU in your file.

    Run from the repository root

    Windows · PowerShell 7
    pwsh stack.ps1 up -NoBuild -DryRun
    Linux / macOS · Bash
    bash stack.sh up --no-build --dry-run
  3. Apply and check health.

    After you have built images for the chosen hardware, use no-build to reuse them. On your first run or after updating application source, use normal up so the images are built.

    restart retains the old container settings. Use up to apply .env changes, then check status and the console’s health.

    Run from the repository root

    Windows · PowerShell 7
    pwsh stack.ps1 up -NoBuild -Wait
    pwsh stack.ps1 status
    pwsh stack.ps1 urls
    Linux / macOS · Bash
    bash stack.sh up --no-build --wait
    bash stack.sh status
    bash stack.sh urls
06 / Look it up when you need it

Every setting.
A reason to change it.

189 parameters, grouped in the same 20 sections as the template. Start with the group you need; leave advanced tuning closed until it becomes relevant.

How to read a value: “Template” is an active assignment in .env.example. “Commented example” is inactive; it shows a possible value, not necessarily the runtime default. “Optional · unset” leaves the device/profile or service defaults in charge. Units, ranges and full formats remain in the versioned template.

01 / Hardware and modelsStart here · 3 settings

Choose where the models run and which family they use. These are two independent decisions. The shipped GPU + advanced pair is not the lightest first run.

STACK_PROFILETemplate · gpu
Default hardware when the command omits it: cpu or gpu. For a first run without NVIDIA setup, choose cpu. The automatic choice is CLI-only.
STACK_GPU_DEVICETemplate · empty
Optional physical NVIDIA GPU index or GPU-UUID/prefix. Leave empty for normal selection. A full UUID keeps the same device preference if index numbering changes; CPU starts ignore a saved selector.
SMART_EMBEDDER_PROFILETemplate · advanced
Model family: basic uses BGE; advanced uses Qwen + MILCO. Both support CPU and GPU. Changing family can make existing collections incompatible; it does not migrate them. Meet the models in each profile ↗.

Template · section 01 · Service or launcher reference ↗

02 / Which services to runStart here · 3 settings

For the search console, keep the middleware included. MCP is only needed for a compatible AI-agent client. QDRANT_BUNDLED lets the stack run its own Qdrant. These switches take effect through the launchers.

EMBEDDER_ONLYTemplate · false
true starts only the model service, removing the middleware and MCP. Keep false to use the search console and document-search API.
MCP_SERVER_ENABLEDTemplate · true
true includes the AI-agent bridge. Set false if you only use the console or REST API. Embedder-only mode leaves it out regardless.
QDRANT_BUNDLEDTemplate · false
true starts a Qdrant database container inside this stack and points the middleware at it, so no separate instance is needed. It requires a QDRANT_API_KEY, is reachable from this computer only at QDRANT_PORT, and keeps its data in the volume named in section 18. Embedder-only mode leaves it out regardless.

Template · section 02 · Service or launcher reference ↗

03 / Ports and addressesStart here · 7 settings

A port is the numbered door in an address. Change a published port if another program uses it. Internal container addresses are managed by Compose.

MIDDLEWARE_PORTTemplate · 6336
The host port for the console and search API. The supplied console address ends in :6336. After changing this port, open the new address; the container still uses 6336 internally.
SMART_EMBEDDER_PORTTemplate · 8010
The direct host port for the model service, used only when its port is published. The internal container port remains 8000. Changing this does not move the console.
QDRANT_PORTTemplate · 6333
The host port of the bundled Qdrant, always on this computer only (127.0.0.1), where its dashboard answers. Used only with QDRANT_BUNDLED=true; the container port stays 6333.
MIDDLEWARE_BIND_HOSTTemplate · 127.0.0.1
Host address on which the console and search API are published. Keep 127.0.0.1 for this computer. A private IPv4 address lets other machines on a trusted network or VPN open it without a tunnel; it requires an access key, which then also protects the health, readiness, statistics and metrics endpoints. Wildcard and public addresses are refused.
EXPOSE_SMART_EMBEDDER_PORTTemplate · true
true publishes the model service on host loopback. Set false for deployment through the middleware; the middleware can still reach it privately. Direct host tests and benchmarks then need a different access route.
QDRANT_API_HOSTTemplate · 127.0.0.1
Middleware bind address for running it outside Docker. Stock Compose sets its own internal bind and publishes the middleware on MIDDLEWARE_BIND_HOST; this is not a LAN exposure switch.
SMART_EMBEDDER_URLTemplate · http://localhost:8010
Where native middleware finds the model service. In Docker, Compose replaces this with http://smart-embedder:8000. Do not change it to follow a host-port change.

Template · section 03 · Service or launcher reference ↗

04 / Access keys and visible interfacesReview before real data · 11 settings

The template leaves all three token lists empty and enables local access without authentication. The access-key walkthrough above explains how to change that.

MIDDLEWARE_API_TOKENSTemplate · empty
Comma-separated secret:label entries for people or clients using the console/API. The console's API key field takes the secret part only. Give each person a separate key for individual revocation.
SMART_EMBEDDER_API_TOKENSTemplate · empty
Keys for clients directly using Smart Embedder, in secret:label form. Keep these secrets different from all middleware and MCP credentials.
MCP_API_TOKENSTemplate · empty
Keys a compatible MCP client presents in static mode, in secret:label form. OAuth mode ignores this list. Do not give an agent your console or Qdrant key instead.
MIDDLEWARE_CLIENT_TOKENTemplate · empty
The single secret MCP sends to the middleware. The middleware accepts it automatically; do not repeat it in its token list. Set it when MCP calls an authenticated middleware.
SMART_EMBEDDER_CLIENT_TOKENTemplate · empty
The single secret the middleware sends to Smart Embedder. The embedder accepts it automatically; do not repeat it in its token list. Set it when the middleware calls an authenticated embedder.
MIDDLEWARE_ALLOW_UNAUTHENTICATED_LOCALTemplate · true
Permits unauthenticated middleware access only when both MIDDLEWARE_API_TOKENS and MIDDLEWARE_CLIENT_TOKEN are empty, and only on a loopback MIDDLEWARE_BIND_HOST. Any accepted token enables authentication even when this switch is true.
SMART_EMBEDDER_ALLOW_UNAUTHENTICATED_LOCALTemplate · true
Permits unauthenticated model-service access only when both SMART_EMBEDDER_API_TOKENS and SMART_EMBEDDER_CLIENT_TOKEN are empty. Any accepted token enables authentication even when this switch is true.
MCP_ALLOW_UNAUTHENTICATED_LOCALTemplate · true
Permits unauthenticated MCP access with an empty static token list, only on a loopback published address. Set false after provisioning keys. Ignored in OAuth mode.
EXPOSE_FRONTENDTemplate · true
true serves the browser console. Set false only if you want the API without that interface. It cannot provide a console in embedder-only mode.
EXPOSE_MIDDLEWARE_SWAGGERTemplate · true
Shows the middleware's interactive developer API documentation. The everyday console does not need it; false removes those documentation routes.
EXPOSE_SMART_EMBEDDER_SWAGGERTemplate · false
Shows the model service's developer API documentation. It does not control the search console or publish a port.

Template · section 04 · Service or launcher reference ↗

05 / Connect to QdrantStart here · 7 settings

The stack needs a Qdrant database: one you run separately, or the bundled one that QDRANT_BUNDLED (section 02) starts inside the stack. The key and address belong to that database, not to the console or model service.

QDRANT_URLTemplate · http://host.docker.internal:6333
HTTP(S) address of the existing Qdrant instance. The supplied host.docker.internal address reaches the Docker host. For a remote instance, use its actual service URL. Ignored with QDRANT_BUNDLED=true: the launcher points the middleware at the bundled instance instead.
QDRANT_API_KEYTemplate · empty
The key issued by your Qdrant installation, if it requires one. Leave empty only if that database accepts access without a key. This is separate from the application's bearer keys. With QDRANT_BUNDLED=true it is required and becomes the bundled instance's own key; it must differ from every application token.
QDRANT_MEM_LIMITTemplate · 4g
Memory ceiling of the bundled Qdrant container, in Docker size notation. Raise it as collections grow: vectors not kept on disk live in RAM. Unused for an external instance.
QDRANT_COLLECTIONTemplate · empty
Optional default collection name. Empty means each request must choose a collection explicitly; this is useful when working with several collections.
QDRANT_TIMEOUTTemplate · 30
Seconds allowed for a call to Qdrant. Increase only after checking the connection and the slow operation; an earlier middleware deadline can still end the request.
QDRANT_ON_DISK_PAYLOADTemplate · true
Default for storing new collections' text and metadata on disk. It controls database storage, not the files in your application folder.
QDRANT_SPARSE_FLOAT16Template · true
Uses smaller 16-bit sparse-vector values in newly created collections. Keep the supplied storage choice unless you have a reason to change the collection schema.

Template · section 05 · Service or launcher reference ↗

06 / Request limits and health checksUsually leave as supplied · 8 settings

These controls limit waiting, request size and traffic. Increasing a limit lets more work in; it does not make the machine faster.

MIDDLEWARE_REQUEST_TIMEOUTTemplate · 30
Middleware request deadline, in seconds. Ingest and export endpoints are exempt from this timer, but their dependency calls still have timeouts. For search, this deadline can expire before a longer downstream timeout.
REQUEST_BODY_MAX_BYTESTemplate · 26214400
Maximum incoming middleware HTTP body, in bytes. 26214400 is 25 MiB. This applies to uploads too, including the request's packaging.
MIDDLEWARE_RATE_LIMIT_REQUESTS_PER_MINUTETemplate · 300
Sustained per-client traffic allowance. The supplied value refills capacity at 300 requests per minute; it is a rate control, not a speed target.
MIDDLEWARE_RATE_LIMIT_BURST_SIZETemplate · 180
How much per-client traffic can arrive in a short burst before rate limiting. A larger burst can put more simultaneous pressure on the services.
HEALTH_PROBE_INTERVALTemplate · 15
Seconds between background checks of Qdrant and Smart Embedder. Health can take this long to catch up after a change; reducing the interval creates more probes.
EMBEDDER_PROBE_TIMEOUTTemplate · 3.0
Seconds allowed for one model-service health probe. This is not the time allowed to perform an embedding or start the stack.
RETRY_MAX_ATTEMPTSTemplate · 3
Total attempts for operations that are eligible for retry, including the first attempt. A value of 3 means at most two retries; some writes must not be replayed automatically.
RETRY_BASE_DELAYTemplate · 0.1
Starting delay between eligible retries, in seconds. Later delays grow and vary slightly to keep clients from retrying at the same moment.

Template · section 06 · Service or launcher reference ↗

07 / Search and rerankingAdjust after a first search · 16 settings

A result is a passage you receive. A candidate is a passage considered along the way. Reranking is a second, closer comparison with the question. Defaults must stay within their corresponding maximums; candidate limits must cover result limits.

QUERY_DEFAULT_LIMITTemplate · 10
How many final passages to return when a search request does not choose a limit. This does not say how many passages were considered.
QUERY_MAX_LIMITTemplate · 50
Highest result count a request may ask for. Keep the default result limit at or below it.
QUERY_DEFAULT_CANDIDATE_LIMITTemplate · 50
Default candidate pool considered during retrieval. A larger pool gives reranking more possibilities but costs work; it is not the final result count.
QUERY_MAX_CANDIDATE_LIMITTemplate · 200
Largest candidate pool callers can request. Keep this at least as large as the maximum result count and the default candidate pool.
QUERY_DEFAULT_RERANKTemplate · true
Enables the second, closer relevance comparison by default. true is a useful starting point; disabling it saves the rerank work.
QUERY_DEFAULT_RERANK_TOP_KTemplate · 20
Default number of candidates sent to the reranker. It is a review window, not a promise to return that many results.
QUERY_MAX_RERANK_TOP_KTemplate · 200
Upper bound on the rerank window a request may ask for. A wider window increases model work.
QUERY_RERANK_MAX_CHARSTemplate · 1000
Maximum characters of each passage sent for reranking. The stored text remains intact. 0 disables this trimming and can sharply increase the model's workload.
QUERY_DEFAULT_FUSIONTemplate · rrf
How meaning and vocabulary results are combined: rrf or dbsf. Start with rrf; compare known questions before changing the method.
QUERY_INDEXED_ONLYTemplate · false
true restricts search to indexed vector segments. Keep false while learning so newly ingested, not-yet-indexed segments are not excluded for this reason.
QUERY_HNSW_EFOptional · unset
Optional breadth of the dense-vector search. Leave commented to use Qdrant's default. Raising it can spend more search work on finding candidates.
QUERY_QUANTIZATION_RESCORETemplate · true
When searching quantized vectors, use original vectors to check the candidates again. Keep true unless you have measured the quality/speed tradeoff.
QUERY_QUANTIZATION_OVERSAMPLINGTemplate · 2.0
Extra candidate factor for quantized search before rescoring. A larger factor considers more candidates and can add work.
QUERY_FILTER_FIELD_ALLOWLISTTemplate · empty
Comma-separated metadata fields that callers may filter on. Empty permits all fields; it does not hide or remove stored fields.
QUERY_FILTER_MAX_DEPTHTemplate · 20
Maximum nesting of filter groups. Most everyday filters need only a shallow structure.
QUERY_FILTER_MAX_CONDITIONSTemplate · 100
Maximum number of conditions in a filter. It limits request complexity, not the number of results.

Template · section 07 · Service or launcher reference ↗

08 / Import and exportAdjust for your files · 9 settings

A chunk is one prepared passage. Total HTTP bytes, file bytes and chunk counts are different limits. Try smaller imports before raising caps; memory use also depends on the number of passages.

INGEST_MAX_CHUNKSTemplate · 10000
Maximum passages in one import request. All passages are embedded before the first write, so this count is a key memory safeguard. Review the container memory limit before raising it.
INGEST_MAX_FILE_BYTESTemplate · 67108864
Maximum JSON file size read from the middleware's data directory: 67108864 is 64 MiB. This is not the HTTP upload cap, and a small file can still contain too many chunks.
INGEST_DEFAULT_BATCH_SIZETemplate · 64
Default number of prepared points sent to Qdrant together. It changes upload batching, not the total import-size limit.
INGEST_MAX_BATCH_SIZETemplate · 256
Largest upload batch a request can choose. The default batch must not exceed it.
INGEST_UPLOAD_CONCURRENCYTemplate · 4
How many upload batches can be sent to Qdrant at once. More parallel uploads can increase pressure on both the middleware and database.
EXPORT_DATA_ROOTTemplate · /app/middleware-qdrant-manager/exports
Container directory for exports written as files. Stock Compose maps it to middleware-qdrant-manager/exports on the host. Changing only this string does not move the Docker mount.
EXPORT_MAX_POINTSTemplate · 50000
Maximum stored points allowed in one export. Raising it requires checking middleware memory, not just free disk space.
EXPORT_MAX_BYTESTemplate · 67108864
Maximum complete UTF-8 JSON export size: 64 MiB as supplied. Formatting and metadata count too; this is not a cap on all Python memory used during export.
EXPORT_MAX_CONCURRENTTemplate · 1
Maximum simultaneous exports per process. Extra requests receive a temporary busy response; one at a time is the supplied setting.

Template · section 08 · Service or launcher reference ↗

09 / Calls to Smart EmbedderUsually leave as supplied · 4 settings

These are the middleware's settings for asking the model service to embed or rerank text. A batch is a group processed together; concurrency is how many groups can be in progress.

SMART_EMBEDDER_TIMEOUTTemplate · 60
Seconds the middleware allows for one model-service call. The middleware's overall deadline still applies.
SMART_EMBEDDER_MAX_BATCH_SIZETemplate · 32
Maximum texts the middleware groups into one embedding call. This is separate from the model's internal micro-batch policy.
SMART_EMBEDDER_RERANK_BATCH_SIZETemplate · 32
Maximum passages in one middleware-to-embedder rerank batch. Smaller batches can ease individual calls, while adding call overhead.
SMART_EMBEDDER_EMBED_CONCURRENCYTemplate · 4
How many embedding sub-batches the middleware can send concurrently. More does not always mean faster on a busy CPU or GPU.

Template · section 09 · Service or launcher reference ↗

10 / Model-service capacityPerformance controls · 19 settings

Keep these defaults until you have measured a problem. Deadlines at the middleware and model service both apply; a longer downstream deadline does not extend an earlier one. Admission estimates are not a promise about physical RAM or GPU memory.

SMART_EMBEDDER_REQUEST_TIMEOUTTemplate · 90
Overall model-service HTTP deadline in seconds. Keep its inference deadlines below this so it can return a controlled timeout response.
SMART_EMBEDDER_EMBED_GPU_TIMEOUTTemplate · 60
Embedding inference deadline in seconds. Despite the historical GPU name, treat it as an inference control, not a startup wait setting.
SMART_EMBEDDER_RERANK_GPU_TIMEOUTTemplate · 60
Reranking inference deadline in seconds. Keep it below the model-service overall request deadline.
SMART_EMBEDDER_MAX_QUEUE_SIZETemplate · 200
Maximum admitted embedding queue. Increasing the queue lets more requests wait; it does not add processing capacity.
SMART_EMBEDDER_MAX_INFLIGHT_TOKENSTemplate · 1048576
Shared estimated text-work budget for embedding and reranking in progress. It limits admitted work, not physical RAM or VRAM consumption.
SMART_EMBEDDER_MAX_INFLIGHT_OUTPUT_BYTESTemplate · 268435456
Shared estimate of JSON output bytes admitted at once. 268435456 is 256 MiB. It is an admission estimate, not a physical memory ceiling.
SMART_EMBEDDER_RERANK_MAX_QUEUETemplate · 32
Maximum admitted reranking queue. A larger queue may mean longer waits when the model is busy.
SMART_EMBEDDER_VRAM_RESERVE_MBTemplate · 512
GPU memory reserve, in MiB, held back when deriving the reranker batch budget. Lower only with measured memory evidence.
SMART_EMBEDDER_OOM_FALLBACKTemplate · true
true allows retrying with a smaller batch after GPU memory exhaustion. false disables that retry, while error detection and reporting remain active.
SMART_EMBEDDER_RATE_LIMIT_REQUESTS_PER_MINUTETemplate · 3600
Sustained per-client traffic rate accepted by the model service. Middleware traffic limits are separate and can be reached first.
SMART_EMBEDDER_RATE_LIMIT_BURST_SIZETemplate · 120
Short-burst capacity at the model service. Leave it at the supplied level until you have measured real traffic needs.
SMART_EMBEDDER_MAX_SENTENCES_PER_REQUESTTemplate · 2048
Maximum texts in one embedding request. The HTTP body and per-text byte limits also apply.
SMART_EMBEDDER_MAX_PASSAGES_PER_REQUESTTemplate · 2048
Maximum passages in one reranking request. This does not guarantee the whole request fits available model capacity.
SMART_EMBEDDER_MAX_ITEM_BYTESTemplate · 1000000
Maximum UTF-8 bytes in an individual text, query or passage. Bytes differ from model tokens; this check happens after the body is decoded.
SMART_EMBEDDER_REQUEST_BODY_MAX_BYTESTemplate · 67108864
Maximum model-service HTTP body, checked while it is received. The supplied 64 MiB sits above the middleware's 25 MiB cap.
SMART_EMBEDDER_LENGTH_AWARE_BATCHINGTemplate · true
Groups similar-length texts for efficient processing, then restores their original output order. Keep true unless comparing measured alternatives.
EMBEDDER_NUM_THREADSCommented example · 8
Optional CPU threads used within model operations. Leave commented for device-aware tuning; assigning more than the machine can use can slow it down.
EMBEDDER_INTEROP_THREADSCommented example · 1
Optional CPU threads coordinating separate model operations. Leave commented unless testing a measured CPU configuration.
SMART_EMBEDDER_NATIVE_THREADSCommented example · 4
Cap for the native OpenMP, OpenBLAS and MKL thread pools in the model containers. Leave commented: the default 4 matches their CPU quota. Uncapped, those pools size themselves to every host CPU, which on many-core servers exceeds the container process limit and crashes model loading.

Template · section 10 · Service or launcher reference ↗

11 / Automatic calibrationUsually leave automatic · 7 settings

The autotuner measures runtime settings on your hardware. Commented entries leave the startup defaults in charge: quick calibration with a balanced objective. Downloads are separate from the tuning budget.

SMART_EMBEDDER_AUTOTUNECommented example · quick
Calibration mode: off, quick or full. quick is normal startup calibration; full is a longer audit. off skips tuning, not model preparation or download.
SMART_EMBEDDER_TUNING_OBJECTIVECommented example · balanced
Calibration preference: balanced, throughput or latency. Throughput favours total work per time; latency favours shorter individual waits. Start with balanced.
SMART_EMBEDDER_AUTOTUNE_FORCECommented example · false
true persistently asks preparation to ignore a reusable tuning profile. Leave unset/false for ordinary starts; the launcher has a separate one-invocation force option.
SMART_EMBEDDER_AUTOTUNE_PROFILECommented example · /app/runtime_state/autotune/hardware-profile.json
Path inside the runtime-state volume for the saved basic hardware decision. Leave the managed location unless changing storage deliberately.
SMART_EMBEDDER_ADVANCED_AUTOTUNE_PROFILECommented example · /app/runtime_state/autotune/advanced-hardware-profile.json
Path for the separate advanced hardware decision. A decision for one family is not reused as the other's calibration.
SMART_EMBEDDER_AUTOTUNE_MAX_SECONDSOptional · unset
Optional shared tuning time budget in seconds. Leave commented for device/mode defaults; this is not an end-to-end startup deadline. For the advanced quick tuner, setting it also makes the budget fixed instead of adaptive.
SMART_EMBEDDER_ADVANCED_AUTOTUNE_MAX_SECONDSOptional · unset
Advanced-specific tuning budget in seconds. Left unset, quick mode adapts to the measured baseline, up to three times its default; a value set here is a fixed limit and takes precedence over the shared tuning budget.

Template · section 11 · Service or launcher reference ↗

12 / Basic · BGE modelsOnly with basic · 11 settings

These settings affect basic only. A token is a small unit of model text, not the same as a word or character. Leave batch and execution choices to calibration unless you have measurements.

BGE_EMBED_MAX_LENGTHTemplate · 8192
Basic embedding input-token cap, at the model ceiling of 8192 as supplied. The CPU Compose service uses BGE_EMBED_CPU_MAX_LENGTH instead.
BGE_RERANK_MAX_LENGTHTemplate · 8192
Basic query-plus-passage token cap for reranking. The supplied 8192 is the model ceiling; the middleware usually trims passages earlier.
BGE_EMBED_CPU_MAX_LENGTHTemplate · 2048
CPU-only basic embedding cap supplied by Compose. 2048 keeps long requests more manageable; raising it can increase CPU time and memory.
BGE_EMBED_BATCH_SIZECommented example · 8
Optional fixed basic embedding micro-batch size. Setting it replaces calibrated length-aware batching with one size for every text length.
BGE_EMBED_INFERENCE_CONCURRENCYCommented example · 2
Optional basic CPU inference lanes, bounded by the detected hardware. The basic GPU path uses one lane.
BGE_RERANK_BATCH_SIZECommented example · 8
Optional number of basic rerank pairs processed together. Leave commented for the tuned or fallback setting.
BGE_EMBED_RUNTIMECommented example · auto
Basic execution backend: auto, torch, onnx-fp32 or onnx-int8. ONNX is CPU-only and needs a validated cached graph; auto lets the system choose.
BGE_ONNX_EXECUTION_MODECommented example · auto
Basic ONNX CPU scheduling: auto, sequential or parallel. Leave auto unless comparing performance on your hardware.
BGE_ONNX_SPIN_POLICYCommented example · auto
Basic ONNX worker waiting policy: auto, default, bounded or disabled. It affects idle CPU behaviour; leave selection automatic.
BGE_TORCH_COMPILETemplate · auto
Basic code-compilation policy: auto, on or off. Compiling can trade preparation time for inference speed; auto lets measurement decide.
BGE_TORCH_COMPILE_MODETemplate · default
The compilation strategy used by the basic Torch backend. Keep default for normal use; alternative modes are documented in the template.

Template · section 12 · Service or launcher reference ↗

13 / Advanced · Qwen embeddingsOnly with advanced · 12 settings

This model represents the meaning of text. Empty or commented execution overrides leave the validated hardware profile or fallback in charge. A commented number is an example, not a setting currently applied.

QWEN_EMBED_MAX_LENGTHTemplate · 32768
Advanced dense-embedding input-token cap. The supplied 32768 is the model ceiling; the CPU Compose service substitutes its smaller CPU cap.
QWEN_EMBED_CPU_MAX_LENGTHTemplate · 2048
CPU-only advanced embedding cap. The supplied 2048 was calibrated for the container's memory limit; raising it needs memory review and recalibration.
QWEN_EMBED_BATCH_SIZECommented example · 8
Scalar batch fallback for advanced dense embedding when no length-aware policy is selected. The commented 8 is an example, not a forced default.
QWEN_EMBED_MAX_BATCH_TOKENSCommented example · 8192
Fallback token budget per advanced dense micro-batch. More tokens can demand more memory; a length-aware policy may supply the actual budget.
QWEN_EMBED_RUNTIMEOptional · unset
Implemented dense backends: torch, onnx-fp32 or onnx-int8. ONNX is CPU-only and needs a validated export. The recognized openvino value is unsupported by this build.
QWEN_EMBED_PRECISIONOptional · unset
Dense model numerical format: fp16, bf16 or fp32. Defaults depend on device/profile; smaller numbers change the memory/quality tradeoff.
QWEN_EMBED_ATTENTIONOptional · unset
Dense model attention implementation. It changes execution mechanics, not the documents searched; leave the validated choice in place.
QWEN_EMBED_TORCH_COMPILEOptional · unset
Optional boolean override for advanced dense code compilation. Leave commented for the profile's choice.
QWEN_EMBED_TORCH_COMPILE_MODEOptional · unset
Advanced dense compilation strategy, used when compilation is enabled. Leave it to calibration unless auditing a specific mode.
QWEN_EMBED_PINNED_MEMORYOptional · unset
Optional dense CPU-to-GPU transfer optimization using page-locked memory. It is a performance choice, not persistent document storage.
QWEN_EMBED_PREFETCH_BATCHESOptional · unset
Optional dense one-batch-ahead preparation. This boolean override can overlap preparation and inference at a memory cost.
SMART_EMBEDDER_ADVANCED_ONNX_CACHECommented example · /app/runtime_state/autotune/onnx
Managed cache path for validated advanced ONNX exports inside runtime state. Leave the default location for ordinary starts.

Template · section 13 · Service or launcher reference ↗

14 / Advanced · MILCO vocabulary signalsOnly with advanced · 13 settings

MILCO adds learned vocabulary signals to the meaning-based search. The defaults keep its full sparse representation. Advanced runtime overrides should follow measured quality and memory checks.

MILCO_MAX_LENGTHTemplate · 8192
Maximum input tokens for the advanced sparse model. This is separate from the Qwen dense model's cap.
MILCO_MAX_BATCH_TOKENSTemplate · 8192
Sparse-model token budget per batch. A larger budget can use more memory; length-aware policies may determine the actual per-length choice.
MILCO_PROJECTION_CHUNK_TOKENSTemplate · 128
How many tokens the sparse vocabulary-projection step processes at a time. Smaller pieces reduce its working-memory demand; this is not document chunking.
MILCO_BATCH_SIZECommented example · 8
Scalar sparse micro-batch fallback when no length-aware policy is selected. Leave commented for calibration/fallback selection.
MILCO_SOURCE_VIEWTemplate · true
Adds source-language vocabulary signals alongside MILCO's shared English view. Keep true unless measuring its effect on your multilingual material.
MILCO_TOP_KTemplate · 0
Optional pruning of each sparse vector to its strongest weights. 0 keeps all non-zero weights; pruning can change retrieval quality.
MILCO_RUNTIMEOptional · unset
Use torch or leave unset. This build has no validated MILCO ONNX or OpenVINO backend; selecting those alternatives fails startup.
MILCO_PRECISIONOptional · unset
Numerical format used to store sparse-model weights. Leave commented for the hardware profile's device-aware choice.
MILCO_COMPUTE_PRECISIONOptional · unset
Numerical format used for sparse calculations. It can differ from weight storage precision; change only with quality and memory measurements.
MILCO_TORCH_COMPILEOptional · unset
Optional boolean override for sparse model code compilation. Leave the calibrated choice in place for ordinary use.
MILCO_TORCH_COMPILE_MODEOptional · unset
Sparse compilation strategy when compiling is enabled. Its effect depends on runtime and hardware.
MILCO_PINNED_MEMORYOptional · unset
Optional page-locked transfer buffers for sparse inference. It affects transfer performance and host memory, not where Qdrant keeps documents.
MILCO_PREFETCH_BATCHESOptional · unset
Optional bounded preparation of the next sparse batch. Overlapping work can use more memory.

Template · section 14 · Service or launcher reference ↗

15 / Advanced · Qwen rerankerOnly with advanced · 7 settings

The reranker compares the question with candidate passages. When these values are unset, Compose uses a 2048-token / 1-passage batch on CPU and 32768-token / 8-passage batch on GPU. A large permitted input does not guarantee it fits available memory.

QWEN_RERANK_MAX_LENGTHOptional · unset
Query-plus-passage token cap. Unset: CPU 2048, GPU 32768. Raising the configured limit invalidates the advanced hardware profile and triggers recalibration.
QWEN_RERANK_BATCH_SIZEOptional · unset
Rerank pairs per batch. Unset Compose defaults: CPU 1, GPU 8. A larger number needs workload and memory testing.
QWEN_RERANK_RUNTIMEOptional · unset
Use torch or leave unset. This build has no validated alternative reranker backend; ONNX or OpenVINO selections fail startup.
QWEN_RERANK_PRECISIONOptional · unset
Reranker numerical format. The ordinary device defaults are GPU fp16 and CPU fp32; leave it to the validated profile.
QWEN_RERANK_ATTENTIONOptional · unset
Reranker attention implementation. Use a compatible, validated choice rather than treating the name as a quality setting.
QWEN_RERANK_TORCH_COMPILEOptional · unset
Optional boolean override for reranker compilation. Its startup-time and speed tradeoff is hardware-dependent.
QWEN_RERANK_TORCH_COMPILE_MODEOptional · unset
Compilation strategy for the advanced reranker. Leave commented unless measuring an explicit alternative.

Template · section 15 · Service or launcher reference ↗

16 / Advanced · schedulingExpert overrides · 7 settings

These options coordinate model work and CPU resources. Leave them commented to use the validated profile. Extra workers can increase contention and memory use.

ADVANCED_SCHEDULE_MODEOptional · unset
Coordinates advanced model work as sequential, overlap or parallel. More overlap can increase resident memory and contention.
ADVANCED_INFERENCE_LANESOptional · unset
Requested advanced inference lanes, from 1 to 8. A measured profile may overlap embedding and reranking; one reranker instance stays serialized.
ADVANCED_QUEUE_BATCHOptional · unset
Maximum HTTP requests combined by the advanced scheduler. It is not the number of documents you can import.
ADVANCED_FLUSH_TIMEOUT_MSOptional · unset
Maximum queue accumulation wait in milliseconds before dispatch. A longer wait can combine work but adds latency.
ADVANCED_CPU_SPIN_POLICYOptional · unset
How CPU workers wait: default, passive or active. Active waiting can consume CPU even while waiting for work.
ADVANCED_CPU_AFFINITYOptional · unset
CPU placement preference: none, compact or socket-local. This is a topology tuning control; leave it automatic on an ordinary workstation.
ADVANCED_CPU_ALLOW_OVERSUBSCRIPTIONOptional · unset
Allows a calibrated CPU layout to request more workers than effective CPUs. The safe fallback is false.

Template · section 16 · Service or launcher reference ↗

17 / Advanced · policies by text lengthExpert overrides · 6 settings

These are JSON policies normally produced by the tuner. They assign different batches or token budgets to different text lengths. Do not fill them by hand for a first run.

QWEN_EMBED_BATCH_POLICYOptional · unset
JSON rules mapping input-length boundaries to dense embedding batch sizes. Normally generated by the advanced tuner.
QWEN_EMBED_MAX_BATCH_TOKENS_POLICYOptional · unset
JSON rules mapping input lengths to dense token budgets. Leave commented so the calibrated policy remains in charge.
MILCO_BATCH_POLICYOptional · unset
JSON rules mapping input lengths to sparse-model batch sizes. Handwritten values need audited measurements.
MILCO_MAX_BATCH_TOKENS_POLICYOptional · unset
JSON rules mapping input lengths to sparse token budgets. Keep the tuner-generated policy for normal use.
QWEN_RERANK_BATCH_POLICYOptional · unset
JSON rules mapping query/passage lengths to rerank batch sizes. A fixed example cannot substitute for memory measurements.
QWEN_RERANK_MAX_BATCH_TOKENS_POLICYOptional · unset
JSON rules mapping query/passage lengths to rerank token budgets. Leave commented for the calibrated policy.

Template · section 17 · Service or launcher reference ↗

18 / Model cache and runtime storageUsually leave as supplied · 7 settings

Docker volumes are storage managed outside the container lifecycle. Renaming a volume does not move its contents: the new name creates an empty store and leaves the old data behind. These are model and calibration stores, plus the bundled Qdrant's database when QDRANT_BUNDLED starts one; an external Qdrant keeps its own storage.

HF_MODEL_CACHE_VOLUMETemplate · smart-embedder-hf-cache
Name of the Docker volume holding downloaded, pinned models. Renaming it starts a new empty model cache and requires fresh downloads.
SMART_EMBEDDER_HF_HUB_DISABLE_XETCommented example · 1
How model preparation downloads from Hugging Face. Leave commented: 1 uses plain HTTP, which resumes a file after a dropped connection. Set 0 to allow Xet, which can be faster on a stable link but can lose a partly downloaded file once its retries run out.
SMART_EMBEDDER_CPU_STATE_VOLUMETemplate · smart-embedder-state-cpu
Name of the CPU preparation-state volume. Renaming it leaves old state behind and requires a new calibration in the new store.
SMART_EMBEDDER_GPU_STATE_VOLUMETemplate · smart-embedder-state-gpu
Name of the GPU preparation-state volume. Keep it stable to reuse compatible GPU preparation decisions.
SMART_EMBEDDER_RUNTIME_CACHE_SIZETemplate · 2g
Size limit for temporary executable runtime cache; 2g means 2 GiB. This is not a persistent model cache; generated code is rebuilt after container recreation.
PYTORCH_CUDA_ALLOC_CONFTemplate · expandable_segments:True,throw_on_cudamalloc_oom:True
GPU memory-allocator policy for fragmentation and catchable allocation failures. Keep the supplied string unless auditing a runtime issue; it does not set a VRAM capacity limit.
QDRANT_STORAGE_VOLUMETemplate · smart-semantic-searcher-qdrant
Name of the Docker volume holding the bundled Qdrant's collections and snapshots. Renaming it starts an empty database; down --volumes deletes it. Unused for an external instance.

Template · section 18 · Service or launcher reference ↗

19 / Connect an AI agent through MCPOnly when MCP is enabled · 17 settings

MCP lets a compatible agent call the middleware's search tools. Static authentication uses local bearer keys. OAuth requires a separately configured identity provider. Settings here matter when MCP is enabled.

MCP_AUTH_MODETemplate · static
static uses locally provisioned MCP bearer keys. oauth validates access tokens with an identity provider and ignores the static key list and local-auth opt-out.
MCP_OAUTH_ISSUER_URLTemplate · empty
OAuth provider's issuer URL, required in OAuth mode. Use the provider's exact value; HTTPS is required outside explicit loopback development.
MCP_OAUTH_RESOURCE_SERVER_URLTemplate · empty
Canonical OAuth URL identifying this MCP resource server, required in OAuth mode. It also supplies the audience when no separate audience is set.
MCP_OAUTH_INTROSPECTION_URLTemplate · empty
OAuth endpoint used to check whether an access token is active. Obtain it from the identity provider; required in OAuth mode.
MCP_OAUTH_CLIENT_IDTemplate · empty
Confidential-client identifier used by MCP for token introspection. It is supplied by your OAuth administrator and required in OAuth mode.
MCP_OAUTH_CLIENT_SECRETTemplate · empty
Secret paired with the introspection client identifier. Keep it private; it is not an API key to paste into the search console.
MCP_OAUTH_AUDIENCETemplate · empty
Expected audience in an active token's introspection response. Empty uses MCP_OAUTH_RESOURCE_SERVER_URL.
MCP_OAUTH_REQUIRED_SCOPESTemplate · empty
Comma-separated OAuth permissions that each token must have. Agree them with the identity-provider setup; empty adds no required scopes.
MCP_BIND_HOSTTemplate · 127.0.0.1
Host address on which MCP is published. Keep 127.0.0.1 for this computer. A private IPv4 address can support a managed private-network setup with authentication; wildcard and public addresses are refused.
MCP_LISTEN_HOSTTemplate · 127.0.0.1
Actual MCP process bind for native execution. Compose sets its internal bind to 0.0.0.0; the published address is separately controlled by MCP_BIND_HOST.
MCP_PORTTemplate · 6337
Port for the MCP endpoint. The supplied local MCP URL is http://127.0.0.1:6337/mcp. This is for an MCP client, not the console.
MCP_MIDDLEWARE_URLTemplate · http://127.0.0.1:6336
Middleware address for native MCP execution. Compose replaces it with http://middleware:6336, independently of the middleware's published host port.
MCP_ALLOWED_HOSTSTemplate · empty
Extra accepted HTTP Host values, comma-separated. Loopback and localhost are always allowed. This validation list does not publish a new network address.
MCP_ALLOWED_ORIGINSTemplate · empty
Accepted browser Origin values, comma-separated. Empty means same-origin only; it does not mean allow every website.
MCP_HTTP_TIMEOUTTemplate · 120
Seconds MCP allows for a middleware call. A longer MCP timeout cannot extend the middleware's own shorter deadline.
MCP_RETRY_ATTEMPTSTemplate · 3
Total attempts for eligible safe middleware calls after transient failures. Mutating requests are not automatically retried.
MCP_RETRY_BACKOFF_SECONDSTemplate · 0.5
Starting delay between eligible MCP retries, in seconds. It grows for subsequent attempts.

Template · section 19 · Service or launcher reference ↗

20 / Collection layoutExpert · not passed by stock Compose · 19 settings

These commented settings do not take effect simply by editing .env in the standard Docker setup: Compose does not pass them. They apply to native middleware execution or an explicitly amended Compose configuration. Changes do not rewrite existing collections. Leave them alone for an ordinary installation.

DENSE_VECTOR_NAMECommented example · dense
Name of the meaning-based vector inside new collections. Renaming it does not rename vectors in existing collections.
SPARSE_VECTOR_NAMECommented example · sparse
Name of the vocabulary-based vector inside new collections. Keep the middleware and stored collection schema aligned.
DENSE_DIMCommented example · 1024
Number of values in each dense vector. Both pinned embedding models output 1024. It must match the model; this is not a search-quality slider.
HNSW_MCommented example · 16
Connections per node in the dense search index. More connections can use more memory; 0 disables the global graph.
HNSW_EF_CONSTRUCTCommented example · 200
Search breadth while building the dense index. Increasing it spends more work on index construction.
HNSW_FULL_SCAN_THRESHOLDCommented example · 10000
Dense query-planner threshold in KB of vector data. Smaller estimated matching sets favour a full scan over HNSW traversal; this is not a point-count threshold.
HNSW_INLINE_STORAGECommented example · true
Stores copies of original and quantized vectors inside the HNSW index to reduce disk seeks, at the cost of extra storage. Requires quantization.
DENSE_ON_DISKCommented example · true
Stores dense vectors on disk. It affects database storage and memory behaviour, not the app's model cache.
DENSE_FLOAT16Commented example · true
Stores dense-vector values as 16-bit floats. Keep the supplied collection format unless planning a schema change.
SPARSE_ON_DISKCommented example · true
Stores sparse vectors/index data on disk. This is independent of dense-vector and text-payload storage.
SPARSE_FULL_SCAN_THRESHOLDCommented example · 20000
Number of sparse vectors below which Qdrant prefers a full scan. Unlike the dense threshold, this counts vectors rather than KB.
SPARSE_IDFCommented example · true
Applies inverse-document-frequency weighting, giving relatively rare vocabulary more influence in sparse scoring.
QUANTIZATION_ENABLEDCommented example · true
Adds a compact scalar-quantized representation of dense vectors for search. It changes the storage/speed/accuracy tradeoff.
QUANTIZATION_ALWAYS_RAMCommented example · true
Keeps the compact quantized representation in RAM. This does not mean every original vector and document must live in RAM.
INDEXING_THRESHOLDCommented example · 20000
Vector-data size threshold in KB above which Qdrant builds an index. 0 disables vector indexing; this is not a passage-count limit.
MEMMAP_THRESHOLDCommented example · 20000
Legacy memory-map threshold in KB, deprecated by Qdrant since 1.15.0. Use DENSE_ON_DISK and SPARSE_ON_DISK for vector storage placement; stock Compose does not pass these overrides.
PREVENT_UNOPTIMIZEDCommented example · true
Defers visibility of new points in large unoptimized segments until optimization finishes. Existing visible points remain readable; wait=true writes also wait for the deferred points to become visible.
SHARD_NUMBERCommented example · 1
Number of partitions in a new collection. Meaningful for a Qdrant cluster; leave the single-shard default for ordinary use.
REPLICATION_FACTORCommented example · 1
Copies per shard in a Qdrant cluster. It does not turn a single database server into a replicated deployment.

Template · section 20 · Service or launcher reference ↗

07 / Common questions

When a setting
does not do what you expect.

A few checks distinguish a file problem from an application or database problem.

I saved the file, but nothing changed.

Check that you edited the environment file the launcher actually uses. Use up, not restart, to apply changes. A command-line argument or terminal environment value may override the file.

For native-only settings and the collection-layout section, read the applicability note: stock Compose may not pass that variable at all.

Startup refuses my access settings.

Check that enabled services have their required keys, every service uses different secrets, and the caller has the required client token. Lists use secret:label; client tokens use only the secret. A label must not start with @.

Read the named error locally, but remove all credentials before sharing it. For the full walkthrough, return to access keys.

An import is “too large”.

Check which limit was reported. REQUEST_BODY_MAX_BYTES limits incoming HTTP data. INGEST_MAX_CHUNKS limits passages per request. INGEST_MAX_FILE_BYTES limits a staged file, not an HTTP upload.

Split the source into smaller imports first. Raising only the file-byte limit does not solve a chunk-count or memory problem.

Should I just increase every timeout?

First identify the slow dependency or operation. The middleware can end a request before a longer model-service deadline expires. A health probe, an inference deadline and the CLI startup wait are different clocks.

Review the relevant group and the logs together. Raising a timeout gives work longer to finish; it does not make it faster.

Why are models downloading again?

Check whether you renamed HF_MODEL_CACHE_VOLUME, removed volumes, changed model family or updated pinned models. A new volume name starts an empty cache; it does not move the previous downloads.

Calibration state has its own CPU/GPU volumes. Temporary compiled runtime artifacts are rebuilt after container recreation even when the model cache is intact.

Do I need to fill in all the commented options?

No. Most are deliberate escape hatches for measured tuning. Leave them commented while getting the first search working. The autotuner and device defaults choose many of these values for you.

Start with hardware, model family, Qdrant, interfaces and access. Change one later setting at a time and compare the same small set of searches.

08 / Keep going

From configuration
to a useful search.

Your configuration is the starting point. These guides take you through the next steps.

This guide explains the choices in the repository’s .env.example. It describes the shipped template, not the contents of your private file. Exact contracts remain in the launcher, middleware, model-service and MCP references.