In the same vein - the sample code uses the line
`self.cosineDistance(vector, queryVector)'
which doesn't correlate to anything that intellisence offers.
I am able to determine the distance between two strings directly with ' embedding.distance(between: string1, and: string2)' - but this is inefficient because I am ending up repeatedly recalculating the vectors for the sentence embeddings for the text corpus.
Topic:
Machine Learning & AI
SubTopic:
General
Tags: