From abfd1677e2088aaefa33f6c17cf49a368d5c7d7b Mon Sep 17 00:00:00 2001 From: isc-lperezra Date: Mon, 23 Dec 2024 13:13:42 +0100 Subject: [PATCH] Logging diagnostics --- src/ENCODER/BP/AnalyzeTextProcess.cls | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ENCODER/BP/AnalyzeTextProcess.cls b/src/ENCODER/BP/AnalyzeTextProcess.cls index dd7273c..56c30d6 100644 --- a/src/ENCODER/BP/AnalyzeTextProcess.cls +++ b/src/ENCODER/BP/AnalyzeTextProcess.cls @@ -31,6 +31,7 @@ Method AnalyzeText(text As %String, analysisId As %String, language As %String) sqlsentence = "" # iris.cls("Ens.Util.Log").LogInfo("ENCODER.BP.AnalyzeTextProcess", "AnalyzeText", "Starting process") for phraseToAnalyze in phrases : + iris.cls("Ens.Util.Log").LogInfo("ENCODER.BP.AnalyzeTextProcess", "AnalyzeText", phraseToAnalyze) if phraseToAnalyze != "": embedding = model.encode(phraseToAnalyze, normalize_embeddings=True).tolist() sqlsentence = "INSERT INTO ENCODER_Object.TextMatches (CodeId, Description, Similarity, AnalysisId, RawText) SELECT TOP 50 * FROM (SELECT CodeId, Description, VECTOR_DOT_PRODUCT(VectorDescription, TO_VECTOR('"+str(embedding)+"', DECIMAL)) AS Similarity, '"+analysisId+"', '"+phraseToAnalyze+"' FROM ENCODER_Object.Codes) ORDER BY Similarity DESC"