The ArkData Intelligence Platform (AIP) provides apps with the capabilities of vectorization, knowledge retrieval, and knowledge Q&A, and helps build on-device intelligent solutions.
Since: 6.0.0(20)
Prerequisites: Before using this module, ensure that the system version of the device is 6.0.0 (20) or later and the device supports on-device AI computing.
| Name | Description |
|---|---|
| AIP_OK = 0, AIP_E_EXEC_ERR = 1021200005, AIP_E_OUT_OF_RANGE = 1021200006, AIP_E_NO_SUCH_FIELD = 1021200007, AIP_E_OVER_LIMIT = 1021200008, AIP_E_CONDITION_OVER_LIMIT = 1021200009, AIP_E_INVALID_ARGS = 1021200010, AIP_E_EMBEDDING_ERR = 1021200012 } | Enumerates the error codes. |
typedef enum OH_Aip_ErrCode OH_Aip_ErrCode;
Description
Enumerates the error codes.
Since: 6.0.0(20)
enum OH_Aip_ErrCode;
Description
Enumerates the error codes.
Since: 6.0.0(20)
| Value | Description |
|---|---|
| AIP_OK = 0 | Operation successful. |
| AIP_E_EXEC_ERR = 1021200005 | An execution error occurred. An internal error occurred during execution. |
| AIP_E_OUT_OF_RANGE = 1021200006 | The index number exceeds the allowed range. The input parameter is out of the allowed range. For example, the index exceeds the array length. |
| AIP_E_NO_SUCH_FIELD = 1021200007 | The field does not exist. The requested field name is not found in the current record. |
| AIP_E_OVER_LIMIT = 1021200008 | The array length exceeds 512 bytes. This error is returned when the array length exceeds the limit. |
| AIP_E_CONDITION_OVER_LIMIT = 1021200009 | The number of conditions exceeds the maximum (1). This error is returned when the number of retrieval conditions exceeds the upper limit. |
| AIP_E_INVALID_ARGS = 1021200010 | Invalid parameter. This error is returned when a null pointer is passed or the parameter type does not match. |
| AIP_E_EMBEDDING_ERR = 1021200012 | Failed to generate an embedding vector. This error is returned when the model fails to be loaded or the input content does not support vectorization. |