mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 21:31:46 +00:00
refactor(config): centralize storage and graph file paths
- Added `constants.mjs` defining `STORAGE_DIR` and `GRAPH_FILE`. - Replaced hard‑coded path strings in `agent.mjs`, `build_graph.mjs`, and `ingest.mjs` with imports from the new constants module. - Updated console log in `ingest.mjs` to reference `STORAGE_DIR`. - Adjusted `GRAPH_FILE` path to `./graphology/graph.json` via the constant.
This commit is contained in:
@@ -10,8 +10,7 @@ import { OllamaEmbedding } from '@llamaindex/ollama';
|
||||
import { OpenAI } from '@llamaindex/openai';
|
||||
import { Graph } from 'graphology';
|
||||
|
||||
const STORAGE_DIR = './storage';
|
||||
const GRAPH_FILE = './graph.json';
|
||||
import { STORAGE_DIR, GRAPH_FILE } from './constants.mjs';
|
||||
|
||||
// Configure Settings
|
||||
Settings.embedModel = new OllamaEmbedding({
|
||||
|
||||
Reference in New Issue
Block a user