tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

MemoriesConstants.sys.mjs (1565B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
      4 
      5 export const HISTORY = "history";
      6 export const CONVERSATION = "conversation";
      7 export const ALL_SOURCES = new Set([HISTORY, CONVERSATION]);
      8 
      9 /**
     10 * Memory categories
     11 */
     12 export const CATEGORIES = "categories";
     13 export const CATEGORIES_LIST = [
     14  "Arts & Entertainment",
     15  "Autos & Vehicles",
     16  "Beauty & Fitness",
     17  "Books & Literature",
     18  "Business & Industrial",
     19  "Computers & Electronics",
     20  "Food & Drink",
     21  "Games",
     22  "Hobbies & Leisure",
     23  "Home & Garden",
     24  "Internet & Telecom",
     25  "Jobs & Education",
     26  "Law & Government",
     27  "News",
     28  "Online Communities",
     29  "People & Society",
     30  "Pets & Animals",
     31  "Real Estate",
     32  "Reference",
     33  "Science",
     34  "Shopping",
     35  "Sports",
     36  "Travel & Transportation",
     37 ];
     38 
     39 /**
     40 * Memory intents
     41 */
     42 export const INTENTS = "intents";
     43 export const INTENTS_LIST = [
     44  "Research / Learn",
     45  "Compare / Evaluate",
     46  "Plan / Organize",
     47  "Buy / Acquire",
     48  "Create / Produce",
     49  "Communicate / Share",
     50  "Monitor / Track",
     51  "Entertain / Relax",
     52  "Resume / Revisit",
     53 ];
     54 
     55 // if generate memories is enabled. This is used by
     56 // - MemoriesScheduler
     57 export const PREF_GENERATE_MEMORIES = "browser.aiwindow.memories";
     58 
     59 // Number of latest sessions to check drift
     60 export const DRIFT_EVAL_DELTA_COUNT = 3;
     61 
     62 // Quantile of baseline scores used as a threshold (e.g. 0.9 => 90th percentile).
     63 export const DRIFT_TRIGGER_QUANTILE = 0.9;