import path from 'node:path';
import { fileURLToPath } from 'node:url';
export const INDEX_FILENAME = 'rag-index.json';
export const DEFAULT_EMBEDDING_MODEL = 'Xenova/all-MiniLM-L6-v2';
export const DEFAULT_EMBEDDING_BATCH_SIZE = 8;
const currentFile = fileURLToPath(import.meta.url);
const currentDir = path.dirname(currentFile);
// Going up three levels: dist/rag -> dist -> package root.
// Works both for src and dist outputs because directory structure mirrors.
export const PACKAGE_ROOT = path.resolve(currentDir, '../../');
export const resolvePackagePath = (...segments) => path.join(PACKAGE_ROOT, ...segments);
export const RAG_SOURCE_DIR = resolvePackagePath('rag-source');
export const INDEX_PATH = resolvePackagePath(INDEX_FILENAME);
//# sourceMappingURL=constants.js.map