Skip to content

Commit

Permalink
Update default core search settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed May 5, 2024
1 parent 4371015 commit 7c86927
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions client/constants/appInfo.constant.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export enum AppInfo {
APP_NAME = "Atomic Search",
DEFAULT_COUNTRY_CODE = "US",
DEFAULT_LANGUAGE = "english",
DEFAULT_LANGUAGE_CODE = "en",
GOOGLE_FORM_WAITING_LIST_URL = "https://your-google-form-url", // Your Google Form URL
}
Expand Down
4 changes: 2 additions & 2 deletions client/modules/pubSub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { createPubSub } from "create-pubsub";
import { SearchResults } from "./search";

const SearchOptions = {
IS_AI_RESPONSE_DISABLED: true,
IS_AI_RESPONSE_DISABLED: false,
IS_WEBGPU_USAGE_DISABLED: true,

// enable by default
IS_LINKS_SUMMARIZED_ENABLED: true,
IS_LARGE_MODEL_ENABLED: true,
IS_LARGE_MODEL_ENABLED: false, // true =Llama, false = Gemma
};

function createLocalStoragePubSub<T>(localStorageKey: string, defaultValue: T) {
Expand Down
3 changes: 2 additions & 1 deletion client/modules/textGeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { search } from "./search";
import { query, debug } from "./urlParams";
import toast from "react-hot-toast";
import { isRunningOnMobile } from "./mobileDetection";
import { AppInfo } from "../constants/appInfo.constant";

export async function prepareTextGeneration() {
if (query === null) return;
Expand All @@ -30,7 +31,7 @@ export async function prepareTextGeneration() {
if (searchResults.length === 0) {
const queryKeywords = (await import("keyword-extractor")).default
.extract(query, {
language: "english",
language: AppInfo.DEFAULT_LANGUAGE,
})
.slice(0, 10);

Expand Down

0 comments on commit 7c86927

Please sign in to comment.