Package-level declarations

Functions

Link copied to clipboard
fun <Error class: unknown class>.distance(other: <Error class: unknown class>): Double

Calculate the distance between two embeddings, corresponding to 1.0 - similarity.

Link copied to clipboard
fun <T> <Error class: unknown class>.getData(): T

Get the data of the AssistantStreamEvent using the provided serializer from the corresponding event type.

fun <T> <Error class: unknown class>.getData(serializer: KSerializer<T>): T

Get the data of the AssistantStreamEvent using the provided serializer.

Link copied to clipboard
fun List<<Error class: unknown class>>.mergeToChatMessage(): <Error class: unknown class>

Merges a list of ChatChunks into a single consolidated ChatMessage.

Link copied to clipboard
fun <Error class: unknown class>.similarity(other: <Error class: unknown class>): Double

Compute the similarity of two embeddings using cosine similarity.