Table of Contents

Class NativeAPI.EmbeddingResponses

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

Methods

litert_lm_embedding_responses_delete(nint)

Destroys a collection of LiteRT LM Embedding Responses.

public static extern void litert_lm_embedding_responses_delete(nint responses)

Parameters

responses nint

The responses collection to destroy.

litert_lm_embedding_responses_get_at(nint, nuint)

Returns the embedding response at the given index in the batch.

public static extern nint litert_lm_embedding_responses_get_at(nint responses, nuint index)

Parameters

responses nint

The responses collection.

index nuint

The batch index.

Returns

nint

Pointer to the embedding response, or nint.Zero if out of bounds.

Remarks

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

litert_lm_embedding_responses_get_size(nint)

Returns the number of responses in the collection.

public static extern nuint litert_lm_embedding_responses_get_size(nint responses)

Parameters

responses nint

The responses collection.

Returns

nuint

The batch size.