Provides APIs related to vector conditions.
File to include: #include "dataaugmentation/retrieval/aip_retrieval_condition_vector.h"
Library: libretrieval_ndk.so
System capability: SystemCapability.DataAugmentation.Retrieval
Since: 6.0.0(20)
Related module: Retrieval
| Name | Description |
|---|---|
| typedef struct OH_Retrieval_SubCondition OH_Retrieval_VectorCondition | Defines a vector retrieval condition, including the retrieval parameters and filter conditions. |
| Name | Description |
|---|---|
| OH_Retrieval_VectorCondition * OH_Retrieval_CreateVectorCondition () | Creates a vector retrieval condition. |
| int OH_Retrieval_DestroyVectorCondition (OH_Retrieval_VectorCondition *condition) | Destroys the retrieval condition obtained through OH_Retrieval_CreateVectorCondition. |
| int OH_Retrieval_SetVectorRecallLimit (OH_Retrieval_VectorCondition *condition, uint32_t limit) | Sets the maximum number of vector retrieval results in the retrieval conditions. |
| int OH_Retrieval_SetSimilarityThreshold (OH_Retrieval_VectorCondition *condition, double threshold) | Sets the similarity threshold of vector retrieval in a retrieval condition. |