-
-
Notifications
You must be signed in to change notification settings - Fork 6
OpenAI.Embedding.DistanceFrom
Andrew Lambert edited this page Jan 21, 2024
·
2 revisions
Function DistanceFrom(OtherEmbedding As OpenAI.Embedding) As Double
Name | Type | Comment |
---|---|---|
OtherEmbedding | Embedding |
The embedding to be compared to this embedding. |
A Double between -1.0
and +1.0
where +1.0
means completely identical and -1.0
means completely different.
Calculates the cosine similarity between this embedding and the other embedding.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2023-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.