Skip to content
dimmiDocs

AI agent

Get knowledge settings

GET/api/v1/knowledge/settings

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:read ability

Response 200

OK
dataobjectrequired
Show child attributes
active_modelstring | nullrequired

The embedding model searches use now, written provider:model@dims, such as openai:text-embedding-3-small@1024. Null when none is set.

builtin_modelstring | nullrequired

The embedding model built into this install, written provider:model@dims. Null when the install has none.

embedding_key_idstring | nullrequired

Id of the AI provider key the active model embeds with, starting with aik_. Null means the built-in embedder.

embeddings_errorstring | nullrequired

Why embeddings are not healthy, in words. Null when there is no error.

embeddings_statusstringrequired

Where the workspace's embeddings stand: none, ready, building (a switch is in progress) or degraded.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

pending_key_idstring | nullrequired

Id of the AI provider key the pending model embeds with, starting with aik_. Null for the built-in embedder or when no switch is under way.

pending_modelstring | nullrequired

The model being built for a switch, written provider:model@dims. Null when no switch is under way.

previous_modelstring | nullrequired

The model used before the last switch, written provider:model@dims. Null when there was none.

reembedobjectrequired
Show child attributes
doneintegerrequired

How many pieces of text have been embedded with the new model so far.

Format: int32

failedintegerrequired

How many pieces of text the provider refused to embed.

Format: int32

started_atstring | nullrequired

When building the new model's vectors began. Null when no build has run.

Format: date-time

totalintegerrequired

How many distinct pieces of text the new model has to embed in all.

Format: int32

switched_atstring | nullrequired

When the workspace last switched to its active model. Null when it never switched.

Format: date-time

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.