Search the Community
Showing results for tags 'embedding'.
-
I can use the OpenAI API to get arrays containing vector embeddings for a word/phrase using this: https://platform.openai.com/docs/guides/embeddings But what's the process of comparing the two vector arrays using something like this: https://en.wikipedia.org/wiki/Cosine_similarity In python, there's a library for this: https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.cosine_similarity.html Anything similar in AutoIt? Thanks!
- 9 replies
-
- cosine similarity
- vector
-
(and 3 more)
Tagged with:
-
Good day , I have the code below , and i would like to embed SQLite3.dll to the compiled file Is it possible ? Thanks in advance #include <SQLite.au3> #include <SQLite.dll.au3> _SQLite_Startup() If @error Then MsgBox($MB_SYSTEMMODAL, "SQLite Error", "SQLite3.dll Can't be Loaded!") Exit -1 EndIf $DB = _SQLite_Open("C:\Temp\Test.db") $Action = "TestAction" $Time = @HOUR&":"&@MIN&":"&@SEC $Date = @YEAR&"-"&@MON&"-"&@MDAY $User = @UserName $Computer = @ComputerName $DC = @LogonServer If @error Then MsgBox($MB_SYSTEMMODAL, "SQLite Error", "Couldnt open Database") Exit -1 EndIf _SQLite_Exec($DB,"INSERT INTO QLogs (Action,Date,Time,User,Computer,DC) " & _ "VALUES ("& _SQLite_FastEscape($Action) & "," & _ _SQLite_FastEscape($Date) & "," & _ _SQLite_FastEscape($Time) & "," & _ _SQLite_FastEscape($User) & "," & _ _SQLite_FastEscape($Computer) & "," & _ _SQLite_FastEscape($DC) & ");") If @error Then MsgBox($MB_SYSTEMMODAL, "SQLite Error", "Couldnt insert!") Exit -1 EndIf _SQLite_Shutdown()