Get Active Indexing
This method allows you to identify which indexing contains the most relevant data for a particular index.
The indexing that is considered "most relevant" for a given index is the indexing that is actively running (i.e., the backend is processing documents), or the most recently completed indexing, if no indexing is running or has been queued.
If no indexing is actively running or has been completed yet, the oldest pending indexing (if any) is considered to be the "most relevant".
You can use this method to identify which indexing to choose for determining the indexing status of a knowledge base index. The same can be accomplished by listing all indexings of a knowledge base index, but it abstracts away the logic of identifying which indexing you want to monitor.
Note that the returned indexing can change over time, as indexings complete and queued indexings are started.
knowledge_base_id
index_id
Successful Response
{
"id": "string",
"created_at": 0,
"knowledge_base_id": "string",
"index_id": "string",
"completed_at": 0
}
ID of the indexing.
State of the indexing.
Unix timestamp (in seconds) when the indexing was created.
The ID of the knowledge base that is being indexed.
The ID of the index that is being indexed.
Unix timestamp (in seconds) when the indexing completed.
Invalid knowledge base or index, or the indexing does not have any indexing.
Validation Error
"HTTPValidationError Object"
detail
curl -H 'Authorization: <value>' https://{api_host}/api/v1/control/knowledge-bases/{knowledge_base_id}/indexes/{index_id}/active-indexing