refactor(constants): move SPEC_DIR and CODE_DIR to constants

This commit is contained in:
2026-03-27 17:53:16 +05:30
parent 8266a17559
commit f19e5ba788
2 changed files with 3 additions and 5 deletions
+1 -5
View File
@@ -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,