Knowledge storage and embedding model
Built Knowledge needs two things from the installation: an object store for the originals of every source, and, for search by meaning, an embedding model. Both are set by the operator in the environment or the Helm values. There is no setting for them in the app.Object store
Knowledge keeps the originals (pages, files, documents) in an S3-compatible object store. The search index itself lives in PostgreSQL.
Docker Compose brings its own object store inside the stack, with no port outside it. Nothing to do: the bucket is called oe-knowledge, and its data stays in a Docker volume until docker compose down -v.
Kubernetes: set the store in my-values.yaml:
objectStore:
endpoint: https://s3.eu-central-1.amazonaws.com # any S3-compatible endpoint
bucket: my-octryx-knowledge
region: eu-central-1 # empty: model.awsRegionThe pod needs access to the bucket: IRSA or workload identity through serviceAccount.annotations, or keys in the Secret. With an endpoint, the bucket is required. With no endpoint, Knowledge answers needs_configuration.
Other installs set the environment directly:
| Variable | Meaning |
|---|---|
OCTRYX_KNOWLEDGE_OBJECT_ENDPOINT_URL | required; also for AWS S3 (https://s3.<region>.amazonaws.com), so no implicit endpoint decides where the data lands |
OCTRYX_KNOWLEDGE_OBJECT_BUCKET | required |
OCTRYX_KNOWLEDGE_OBJECT_REGION | the region |
OCTRYX_KNOWLEDGE_OBJECT_PREFIX | optional key prefix: lower-case segments separated by /, at most 64 characters |
OCTRYX_KNOWLEDGE_OBJECT_TIMEOUT_SECONDS | optional, 0.5 to 60, default 10 |
OCTRYX_KNOWLEDGE_OBJECT_AWS_PROFILE | optional: a dedicated credentials profile for the store, so it never uses AWS_* keys meant for another purpose, such as Bedrock |
Credentials are never part of this configuration. They come from the usual AWS credential chain (or the profile) and never appear in a log or a response.
Embedding model
Search always finds passages by their words. With an embedding model, it also finds them by meaning, and fuses both results. Without one, the search stays lexical: it still answers, and the vector part reports needs_configuration. The Docker Compose stack has no embedding model, so its search is lexical.
The model is chosen per installation with OCTRYX_KNOWLEDGE_EMBEDDING_SPACE. Only the spaces in the platform's catalog are accepted; an unknown name is needs_configuration too.
| Space | Model | Runs | Dimensions |
|---|---|---|---|
local_mlminilm_384_v1 | paraphrase-multilingual-MiniLM-L12-v2 (ONNX) | in the platform's process: no text leaves it | 384 |
bedrock_titan2_1024_v1 | Amazon Titan Text Embeddings v2 | AWS Bedrock | 1024 |
bedrock_cohere_ml3_1024_v1 | Cohere Embed Multilingual v3 | AWS Bedrock | 1024 |
Local space. The model is never downloaded at runtime. Its files must lie in <model root>/local_mlminilm_384_v1/, where the model root is OCTRYX_KNOWLEDGE_EMBEDDING_MODEL_ROOT (default /app/models/embedding). Every file must match the checksum pinned in the catalog; a missing or altered file is needs_configuration. deployment/local/acceptance/prepare_models.py --space local_mlminilm_384_v1 --root <folder> in the repository downloads the pinned files, checks them and puts them in place. Mount that folder at the model root. The platform loads the model in the background right after its start, so the first search does not wait for it.
Bedrock spaces. They use the AWS credentials of the platform and the region from OCTRYX_KNOWLEDGE_EMBEDDING_REGION, else AWS_REGION. Text leaves the platform, so a Workspace may use them only if its data classification is internal or lower. A Workspace with a higher or no classification is refused before any text is sent. See Data classes.
Dimensions. OCTRYX_KNOWLEDGE_EMBEDDING_DIMENSION (default 1024) sets the vector column when a new PostgreSQL database is created. Set it before the first start.
Changing the space means embedding again into a new index; vectors of two spaces are never mixed.
On Kubernetes, set these variables through extraEnv in my-values.yaml. The chart has no volume for the local model's files yet, so a Bedrock space is the way there today.
What people see without it
- Without an object store, Knowledge search, uploads and syncs do not work: they answer
needs_configuration. Only an admin can fix it, by setting the store as above and restarting the server. Knowledge › Search says so:- to an admin: "Knowledge storage is not set up on this instance", with the link How to set up knowledge storage to this page;
- to everyone else: "Knowledge search is not available yet. Your administrator has not set up knowledge storage on this instance yet."
- When the store is configured but cannot be reached, the search says "Knowledge storage is not reachable right now. Try the search again in a moment."
- Without an embedding model, search works by words only. Results still carry their source file and section.
