From 1434dd20afd79698d3e0a885de7c78ee6887b3f4 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Fri, 27 Mar 2026 09:57:04 +0530 Subject: [PATCH] refactor: move build_graph.mjs and ingest.mjs to setup/ --- build_graph.mjs => setup/build_graph.mjs | 2 +- ingest.mjs => setup/ingest.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename build_graph.mjs => setup/build_graph.mjs (98%) rename ingest.mjs => setup/ingest.mjs (98%) diff --git a/build_graph.mjs b/setup/build_graph.mjs similarity index 98% rename from build_graph.mjs rename to setup/build_graph.mjs index 9c6cd97..7c1531a 100644 --- a/build_graph.mjs +++ b/setup/build_graph.mjs @@ -6,7 +6,7 @@ import { Graph } from 'graphology'; const SPEC_DIR = './spec-built/multipage'; const CODE_DIR = './engine262/src'; -import { GRAPH_FILE } from './constants.mjs'; +import { GRAPH_FILE } from '../constants.mjs'; async function buildGraph() { const graph = new Graph({ multi: true }); diff --git a/ingest.mjs b/setup/ingest.mjs similarity index 98% rename from ingest.mjs rename to setup/ingest.mjs index 4a03dda..2c2eb3f 100644 --- a/ingest.mjs +++ b/setup/ingest.mjs @@ -18,7 +18,7 @@ Settings.embedModel = new OllamaEmbedding({ const SPEC_DIR = './spec-built/multipage'; const CODE_DIR = './engine262/src'; -import { STORAGE_DIR } from './constants.mjs'; +import { STORAGE_DIR } from '../constants.mjs'; // Initialize a SentenceSplitter with even smaller chunk size const sentenceSplitter = new SentenceSplitter({ chunkSize: 256, chunkOverlap: 20 });