aclfvCreateSearchInput

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

x

Atlas 200I/500 A2 inference products

x

Atlas inference products

Atlas training products

x

Description

Creates data of the aclfvSearchInput type as an input of a search task. To destroy data of the aclfvSearchInput type, see aclfvDestroySearchInput.

The Atlas inference accelerator modules does not support this API.

Prototype

aclfvSearchInput *aclfvCreateSearchInput(aclfvQueryTable *queryTable, aclfvRepoRange *repoRange, uint32_t topk)

Parameters

Parameter

Input/Output

Description

queryTable

Input

Pointer to the input query table.

Call aclfvCreateQueryTable to create data of the aclfvQueryTable type.

repoRange

Input

Pointer to the repository range to search.

Call aclfvCreateRepoRange to create data of the aclfvRepoRange type.

topk

Input

Number of results to return per search request

Returns

  • Success: a pointer to data of the aclfvSearchInput type
  • Failure: nullptr