Table of Contents

Class NativeAPI.EmbeddingResponse

Namespace
Uralstech.UAI.LiteRTLM.Native
public static class NativeAPI.EmbeddingResponse
Inheritance
object
NativeAPI.EmbeddingResponse

Methods

litert_lm_embedding_response_delete(nint)

Destroys a LiteRT LM Embedding Response.

public static extern void litert_lm_embedding_response_delete(nint response)

Parameters

response nint

The response to destroy.

litert_lm_embedding_response_get_size(nint)

Returns the dimension (number of float values) of the embedding response.

public static extern nuint litert_lm_embedding_response_get_size(nint response)

Parameters

response nint

The response to inspect.

Returns

nuint

Number of float elements.

litert_lm_embedding_response_get_values(nint)

Returns a pointer to the array of float embedding values.

public static extern nint litert_lm_embedding_response_get_values(nint response)

Parameters

response nint

The response to inspect.

Returns

nint

Pointer to float array, or nint.Zero if empty.

Remarks

The returned pointer is owned by response and valid for its lifetime.