Skip to content

MngReloadAIKnowledge

POST ai/knowledge/reload

Rereads the documents and swaps the index in memory. The new index is built beside the old one and replaced in one assignment, so searches running at that moment are not interrupted and no question fails during a reload.

Use it after documents are updated in the repository. A service restart is never needed for content changes.

Access Control

Allowed: admin.

Response Data

{
  "documents": 52,
  "chunks": 203,
  "brands": [ { "brand": "Ion", "documents": 2, "chunks": 4 } ],
  "errors": [],
  "durationMs": 65
}

The module also emits ai.knowledge.reloaded on the bus, so other interfaces can refresh their status view.

Errors

Code Error Description
403 AI_ACCESS_DENIED The session is not an administrator