Source code

Revision control

Copy as Markdown

Other Tools

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
export const HISTORY = "history";
export const CONVERSATION = "conversation";
export const ALL_SOURCES = new Set([HISTORY, CONVERSATION]);
/**
* Memory categories
*/
export const CATEGORIES = "categories";
export const CATEGORIES_LIST = [
"Arts & Entertainment",
"Autos & Vehicles",
"Beauty & Fitness",
"Books & Literature",
"Business & Industrial",
"Computers & Electronics",
"Food & Drink",
"Games",
"Hobbies & Leisure",
"Home & Garden",
"Internet & Telecom",
"Jobs & Education",
"Law & Government",
"News",
"Online Communities",
"People & Society",
"Pets & Animals",
"Real Estate",
"Reference",
"Science",
"Shopping",
"Sports",
"Travel & Transportation",
];
/**
* Memory intents
*/
export const INTENTS = "intents";
export const INTENTS_LIST = [
"Research / Learn",
"Compare / Evaluate",
"Plan / Organize",
"Buy / Acquire",
"Create / Produce",
"Communicate / Share",
"Monitor / Track",
"Entertain / Relax",
"Resume / Revisit",
];
// if generate memories is enabled. This is used by
// - MemoriesScheduler
export const PREF_GENERATE_MEMORIES = "browser.aiwindow.memories";
// Number of latest sessions to check drift
export const DRIFT_EVAL_DELTA_COUNT = 3;
// Quantile of baseline scores used as a threshold (e.g. 0.9 => 90th percentile).
export const DRIFT_TRIGGER_QUANTILE = 0.9;