mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 13:21:55 +00:00
refactor(constants): move SPEC_DIR and CODE_DIR to constants
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
export const STORAGE_DIR = "./storage";
|
||||
export const SPEC_DIR = "./spec-built/multipage";
|
||||
export const CODE_DIR = "./engine262/src";
|
||||
export const GRAPH_FILE = "./graphology/graph.json";
|
||||
|
||||
+1
-5
@@ -10,17 +10,13 @@ import {
|
||||
storageContextFromDefaults,
|
||||
VectorStoreIndex,
|
||||
} from "llamaindex";
|
||||
import { SPEC_DIR, STORAGE_DIR } from "../constants";
|
||||
|
||||
// Configure Settings
|
||||
Settings.embedModel = new OllamaEmbedding({
|
||||
model: "nomic-embed-text-v2-moe",
|
||||
});
|
||||
|
||||
const SPEC_DIR = "./spec-built/multipage";
|
||||
const _CODE_DIR = "./engine262/src";
|
||||
|
||||
import { STORAGE_DIR } from "../constants";
|
||||
|
||||
// Initialize a SentenceSplitter with even smaller chunk size
|
||||
const sentenceSplitter = new SentenceSplitter({
|
||||
chunkSize: 256,
|
||||
|
||||
Reference in New Issue
Block a user