Skip to main content

Knowledge Graph Manager (KGM) Configuration

KGM backs the Business Concept Map by collecting knowledge supplied through Source Adapters. Platform Teams use these settings to configure ingestion, search indexing, and adapter connectivity.

Static configurations to be set under the kgm key in the values.yaml file of the Witboost Helm chart.

note

KGM is disabled by default. To enable it set the enabled property to true.

References

Application configuration​

Configuration overrides to be defined under configOverride.

kgm:
enabled: true
configOverride:
# application configurations
kgm:
# many app configurations must be defined under this 'kgm' key
warning

Most application configurations must be defined under the kgm.configOverride.kgm key.
Be careful not to confuse this with the root-level kgm key.

Sources and Adapters​

References

Every KGM Source must be configured under the kgm.sources list.

Example
# kgm.configOverride

kgm:
sources:
- id: first-source
name: First Source
baseUrl: 'http://my-source-adapter:8080'
modes:
ingest:
enabled: true
schedule: '0 0 12 ? * * *'
# ...
- id: second-source
name: Second Source
# ...
warning

When a Source Adapter is unregistered (removed from the KGM configuration), all triples previously ingested from that source are automatically removed from KGM.

KeyTypeRequiredDefaultDescriptionExample
idstringYesUnique source identifiermy-source
namestringYesSource display nameMy Source
baseUrlstringYesBase URL of the Source Adapter. Make sure it is reachable from the KGM servicehttp://my-source-adapter:8080
modesobjectNoIngestion settings for this source
mtls.enabledbooleanNofalseEnables mutual TLS for this specific Source Adapter. When set to true, KGM uses the globally configured client certificate for all requests made to this adapter (see mTLS configs). mTLS is ignored for HTTP adapters because TLS cannot be performed over plain HTTPtrue

Modes​

To setup an Ingestion Source, fill modes.ingest:

KeyTypeRequiredDescriptionExample
enabledbooleanYesIngestion mode is enabled for this sourcetrue
schedulestringYes, if enabledCron expression in Quartz format. Defines how often KGM triggers ingestion from this source0 0 12 ? * * *

The active Business Concept Model dynamically configures its label, description, and synonym predicates and concept types. Activating a model or editing the active model synchronizes these fields automatically; changes to the indexed fields or types request a background reindex. Do not duplicate model-managed predicates in Helm configuration.

Reindexing rebuilds the search index from already ingested knowledge; it does not fetch fresh knowledge from Source Adapters.

Example
# kgm.configOverride

kgm:
search:
fullReindex:
schedule: '0 0 0/12 * * ?'
semantic:
threshold: 0.3
candidateLimit: 1000
batchSize: 200
maxAttempts: 4
attemptTimeout: 30s
retryDelay: 2s
credentialEncryptionKey: ${KGM_SEMANTIC_CREDENTIAL_ENCRYPTION_KEY}
credentialEncryptionIv: ${KGM_SEMANTIC_CREDENTIAL_ENCRYPTION_IV}

Key: kgm.search

KeyTypeRequiredDefaultDescription
fullReindex.schedulestringNo0 0 0/12 * * ? 1Cron expression in Quartz format for rebuilding the full text index. When semantic search is enabled, a successful full reindex also requests a semantic build.
semantic.thresholdnumberNo0.4Minimum cosine similarity retained by semantic search. Tune it for the configured embedding model and content.
semantic.candidateLimitintegerNo1000Maximum nearest predicate vectors considered before results are grouped by resource IRI. Higher values can improve recall and deep pagination at the cost of query latency. The maximum supported value is 1000.
semantic.batchSizeintegerNo200Number of resource IRIs processed in each semantic build batch.
semantic.maxAttemptsintegerNo4Total semantic provider attempts, including the first attempt.
semantic.attemptTimeoutdurationNo30sTimeout for one semantic provider attempt.
semantic.retryDelaydurationNo2sInitial delay used by the semantic build retry policy.
semantic.credentialEncryptionKeystringYes 2Hex-encoded 32-byte key used by KGM to encrypt the persisted embedding provider credential.
semantic.credentialEncryptionIvstringYes 2Hex-encoded 16-byte initialization vector used with the encryption key.
info

The embedding provider, endpoint, deployment, API version, credential, semantic enablement, and Product Search synchronization are runtime settings managed through the KGM semantic APIs and Administration > Configuration > Marketplace > Business Concepts Settings. They are not static kgm.search.semantic properties. Follow How to Set Up Business Concept Semantic Search to configure the model and create embeddings.

Semantic builds are asynchronous. KGM keeps the previous completed generation searchable while a new generation is queued or running, then activates the new generation only after it succeeds. Model, predicate, or type changes can make embeddings outdated and require a new build.

Advanced: Static Search Predicates​

No additional predicate configuration is normally required for the Business Concept Map. Use the active Business Concept Model to choose its searchable fields.

The optional kgm.configOverride.kgm.search.predicates setting defines a baseline of RDF predicates whose literal values are indexed alongside the model-managed fields. These baseline predicates remain indexed when the active model changes, so search can match fields not defined in that model.

Type: string list.

Default: ["http://schema.org/description", "http://schema.org/name", "http://www.w3.org/2004/02/skos/core#prefLabel", "http://www.w3.org/2004/02/skos/core#altLabel"]

Security​

mTLS​

References

Key: kgm.security.mtls

KeyTypeRequiredDefaultDescription
client.certificate.pathstringNofile:/opt/docker/etc/tls/client.p12Filesystem path to the PKCS#12 archive containing the client certificate and private key used by KGM when establishing mTLS connections with HTTPS Source Adapters
client.certificate.passwordstringNoKGM_MTLS_CLIENT_CERTIFICATE_PASSWORD environment variablePassword used to decrypt the PKCS#12 (.p12) archive. Must match the export password set when the certificate was generated
client.bypassCAFilteringbooleanNofalseIf true, it ignores the server-provided list of acceptable issuers when acting as a TLS client. This is useful in mutual TLS scenarios where the server provides a restricted list of acceptable certificate authorities (via the "certificate_authorities" TLS extension), but the client holds a certificate issued by a different (e.g., internal or private) CA. By ignoring the issuers list, the client can still present its certificate even if it is not trusted by the server

Footnotes​

  1. every 12 hours starting at 00:00 am ↩

  2. Required when a semantic model credential is stored. Keep both values stable across restarts and rotate them only together with replacement of the stored credential. Configure them through the KGM_SEMANTIC_CREDENTIAL_ENCRYPTION_KEY and KGM_SEMANTIC_CREDENTIAL_ENCRYPTION_IV secrets. ↩ ↩2