Function GenieEmbedding_create

Function Documentation

Genie_Status_t GenieEmbedding_create(const GenieEmbeddingConfig_Handle_t configHandle, GenieEmbedding_Handle_t *embeddingHandle)

A function to create a embedding. The embedding can be configured using a builder pattern.

Parameters
  • configHandle[in] A handle to a valid config. Must not be NULL.

  • embeddingHandle[out] A handle to the created embedding. Must not be NULL.

Returns

Status code:

  • GENIE_STATUS_SUCCESS: API call was successful.

  • GENIE_STATUS_ERROR_INVALID_HANDLE: Config handle is invalid.

  • GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.

  • GENIE_STATUS_ERROR_MEM_ALLOC: Memory allocation failure.