mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 21:31:46 +00:00
refactor: move build_graph.mjs and ingest.mjs to setup/
This commit is contained in:
@@ -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 });
|
||||
@@ -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 });
|
||||
Reference in New Issue
Block a user