Repository navigation
חיפוש חכם: רישום חיפוש איטי ב-errors.txt עם זמני השלבים - #5544
Merged
Merged
Conversation
Contributor
|
ה־CI נכשל ב־PR של @palmoni5, ולכן ה־PR הועבר אוטומטית ל־Draft. הבדיקה שנכשלה: אנא תקן את הבעיה, ודא שהבדיקות עוברות, ואז החזר את ה־PR ל־Ready for review. |
This was referenced Nov 19, 2026
6 of 8 tasks
1 task done
This was referenced Nov 22, 2026
Y-PLONI
force-pushed
the
feat/semantic-slow-search-log
branch
from
November 23, 2026 15:23
a7c3747 to
a25f119
Compare
Y-PLONI
marked this pull request as ready for review
November 23, 2026 15:23
Refs Otzaria#2509 Co-authored-by: ypl <7353755@gmail.com>
Y-PLONI
force-pushed
the
feat/semantic-slow-search-log
branch
from
November 23, 2026 17:43
a25f119 to
9b83e67
Compare
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
תלוי במנוע: Otzaria/otzaria_search_engine#95, השדה
SemanticSearchResponse.timings. ב-pubspec.yamlמוגדרotzaria_search_engine: ^7.4.0, הגרסה הרשמית שתפורסם אחרי המיזוג שם. עד הפרסום ה-CI ייכשל ב-pub get --enforce-lockfile.pubspec.lockלא עודכן בכוונה. אחרי הפרסום מריציםflutter pub getומוסיפים את ה-lock ל-PR הזה.Refs #2509
הבעיה
ב-#2509 חיפוש חכם על כל הספרייה לוקח כדקה במחשב עם 8GB. אין דרך לדעת מדיווח באיזה שלב הלך הזמן: פתיחת הווקטורים והמודל, החיפוש המילולי, חישוב וקטור השאילתה, סריקת הווקטורים או בניית העמוד. המנוע מודד את השלבים, אבל המדידה לא הגיעה לאפליקציה.
השינוי
SemanticSlowSearchLogחדש (lib/semantic_search/services/), באותו מבנה שלSemanticFallbackLog.errors.txtתחתSlow smart search, לכל היותר פעם בעשר דקות.ensureOpen, פתיחת הווקטורים והמודל).SemanticSearchResponse.timings).memoryInfo).ErrorLogFile.appendInBackground), כמו ב-SemanticFallbackLog, כדי לא להוסיף תקיעה אחרי חיפוש איטי.ErrorLogBlock.isCrashEvidence), בדומה ל-Slow startup.EngineSemanticResultsSource.fetch. זמן ההכנה נלקח מהרגע שבוonSearchingנקרא.בדיקות
flutter analyze lib/semantic_search test/semantic_search: לא נמצאה אף בעיה.flutter test test/semantic_search/מול ענף המנוע דרךpubspec_overrides.yamlמקומי: כל 505 עברו, 1 דולגה. אחרי תיקוני ה-QA הורצו שוב שני הקבצים שהשתנו: 12 עברו.semantic_slow_search_log_test.dart: הסף, הגבלת התדירות, תוכן הרשומה, ומנוע שלא דיווח זמנים.semantic_results_source_test.dart: הרשומה מהמקור כוללת זמן הכנה, היקף, מספר מילים, היסט ומספר תוצאות, וחיפוש עם facet/נרשם כ"כל הספרייה".PR-ים פתוחים חופפים
pubspec.yaml, שורתotzaria_search_engine(שם^7.3.0, כאן^7.4.0). פתרון:^7.4.0.pubspec.yaml, אבל אלה שתי ההתנגשויות שכבר קיימות בינו לביןdev(pdfrx). השינוי הזה לא מוסיף התנגשות.