Compute RAG index

In case the document is not RAG indexed, it triggers rag indexing task, otherwise it just returns the current status.

路径参数

documentation_idstring必需
The id of a document from the knowledge base. This is returned on document addition.

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
modelenum必需默认为 e5_mistral_7b_instruct
允许的值:

响应

Successful Response
idstring
modelenum默认为 e5_mistral_7b_instruct
允许的值:
statusenum
progress_percentagedouble
document_model_index_usageobject

错误

422
Document Compute Rag Index Request Unprocessable Entity Error