From the course: Using AI with Filemaker Pro
Unlock this course with a free trial
Join today to access over 24,300 courses taught by industry experts.
Understanding cosine similarity - FileMaker Pro Tutorial
From the course: Using AI with Filemaker Pro
Understanding cosine similarity
- [Instructor] The CosineSimilarity function gets the similarity between two embedding vectors. While there are other similarity functions for vectors like Euclidean distance or Manhattan distance, cosine is the specific function that's used by the Claris platform. For embedded vectors, CosineSimilarity gives a useful measure of how similar two values are likely to be. So you'll convert text values from the text into vectors, and then you'll compare the similarity of those two vectors. The result of the similarity evaluation will range between negative one and one, which will be inclusive of those two values. The values that are closest to one indicate higher semantic similarity. Zero indicates no similarity, and minus one indicates dissimilarity, and those are evaluated within a range. Now this is very important. The vectors must also have the same dimensions. So what does that mean? Well, it means that the number of elements in the vector arrays must be the same. So different models…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
AI in FileMaker Pro 20244m 32s
-
(Locked)
Setting up AI integration3m 50s
-
(Locked)
Understanding insert embeddings4m 7s
-
(Locked)
Understanding GetEmbedding2m 14s
-
(Locked)
Working with embeddings5m 10s
-
(Locked)
Understanding Perform Semantic Find4m 13s
-
(Locked)
Working with Perform Semantic Find5m 46s
-
(Locked)
Testing Perform Semantic Find4m 43s
-
(Locked)
Understanding cosine similarity3m 11s
-
(Locked)
Working with cosine similarity4m 44s
-
Working with GetEmbedding6m 4s
-
(Locked)
Understanding optimizing AI usage4m 40s
-
(Locked)
Working with Set AI Call Logging3m 8s
-
(Locked)
Working with token counts6m 50s
-
(Locked)
-