openai-kotlin
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
openai-kotlin
openai-client
/
com.aallam.openai.client.extension
/
distance
distance
fun
<Error class: unknown class>
.
distance
(
other
:
<Error class: unknown class>
)
:
Double
Calculate the distance between two embeddings, corresponding to 1.0 - similarity.