@aiconnect/easy-rag 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +108 -63
- package/dist/commands/init.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AA2CA,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CA0E1C"}
|
package/dist/commands/init.js
CHANGED
|
@@ -6,6 +6,29 @@ const MODELS = [
|
|
|
6
6
|
{ value: 'text-embedding-ada-002', label: 'text-embedding-ada-002 (legacy model)' },
|
|
7
7
|
];
|
|
8
8
|
const MAX_ATTEMPTS = 3;
|
|
9
|
+
function detectExistingKey(existingConfig) {
|
|
10
|
+
const envKey = process.env.OPENAI_API_KEY?.trim();
|
|
11
|
+
if (envKey) {
|
|
12
|
+
return { value: envKey, source: 'env' };
|
|
13
|
+
}
|
|
14
|
+
if (existingConfig.openai_api_key) {
|
|
15
|
+
return { value: existingConfig.openai_api_key, source: 'config' };
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
function detectExistingModel(existingConfig) {
|
|
20
|
+
const envModel = process.env.EMBEDDING_MODEL?.trim();
|
|
21
|
+
if (envModel) {
|
|
22
|
+
return { value: envModel, source: 'env' };
|
|
23
|
+
}
|
|
24
|
+
if (existingConfig.embedding_model) {
|
|
25
|
+
return { value: existingConfig.embedding_model, source: 'config' };
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
function sourceLabel(source) {
|
|
30
|
+
return source === 'env' ? 'environment variable' : 'config file';
|
|
31
|
+
}
|
|
9
32
|
export async function init() {
|
|
10
33
|
const rl = readline.createInterface({
|
|
11
34
|
input: process.stdin,
|
|
@@ -15,78 +38,43 @@ export async function init() {
|
|
|
15
38
|
console.log('EasyRAG Configuration Setup');
|
|
16
39
|
console.log('────────────────────────────\n');
|
|
17
40
|
const existingConfig = await loadConfig();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
console.log(`A configuration file already exists at ${CONFIG_PATH}`);
|
|
21
|
-
console.log('Running init will overwrite your current settings.\n');
|
|
22
|
-
const continueAnswer = await rl.question('Continue? [y/N]: ');
|
|
23
|
-
if (continueAnswer.toLowerCase() !== 'y') {
|
|
24
|
-
console.log('Configuration cancelled.');
|
|
25
|
-
process.exit(0);
|
|
26
|
-
}
|
|
27
|
-
console.log('');
|
|
28
|
-
}
|
|
41
|
+
// --- API Key ---
|
|
42
|
+
const detectedKey = detectExistingKey(existingConfig);
|
|
29
43
|
let apiKey = '';
|
|
30
|
-
if (
|
|
31
|
-
const
|
|
32
|
-
console.log(`
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
apiKey = await rl.question('Enter your OpenAI API key (sk-...): ');
|
|
37
|
-
if (apiKey === '') {
|
|
38
|
-
if (attempt === MAX_ATTEMPTS) {
|
|
39
|
-
console.log('Too many failed attempts. Aborting initialization.');
|
|
40
|
-
process.exit(2);
|
|
41
|
-
}
|
|
42
|
-
const continueVal = attempt < MAX_ATTEMPTS;
|
|
43
|
-
if (continueVal) {
|
|
44
|
-
console.log(`Please try again (${remainingAttempts} attempts remaining):\n`);
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
44
|
+
if (detectedKey) {
|
|
45
|
+
const masked = maskApiKey(detectedKey.value);
|
|
46
|
+
console.log(`OpenAI API key found (${sourceLabel(detectedKey.source)}): ${masked}`);
|
|
47
|
+
const answer = await rl.question('Keep this key? [Y/n]: ');
|
|
48
|
+
if (answer.toLowerCase() === 'n') {
|
|
49
|
+
apiKey = await promptApiKey(rl);
|
|
47
50
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
console.log(`Please try again (${remainingAttempts} attempts remaining):\n`);
|
|
52
|
-
continue;
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
console.log('Too many failed attempts. Aborting initialization.');
|
|
56
|
-
process.exit(2);
|
|
57
|
-
}
|
|
51
|
+
else {
|
|
52
|
+
apiKey = detectedKey.value;
|
|
53
|
+
console.log('✓ Keeping existing API key.\n');
|
|
58
54
|
}
|
|
59
|
-
break;
|
|
60
55
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
console.log('');
|
|
67
|
-
let modelSelection = '';
|
|
56
|
+
else {
|
|
57
|
+
apiKey = await promptApiKey(rl);
|
|
58
|
+
}
|
|
59
|
+
// --- Embedding Model ---
|
|
60
|
+
const detectedModel = detectExistingModel(existingConfig);
|
|
68
61
|
let model = MODELS[0].value;
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
const choice = parseInt(modelSelection, 10);
|
|
77
|
-
if (choice >= 1 && choice <= MODELS.length) {
|
|
78
|
-
model = MODELS[choice - 1].value;
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
if (attempt < MAX_ATTEMPTS) {
|
|
82
|
-
console.log('Invalid choice. Please enter a number between 1 and 3.');
|
|
83
|
-
console.log(`Please try again (${remainingAttempts} attempts remaining):\n`);
|
|
62
|
+
if (detectedModel) {
|
|
63
|
+
const modelLabel = MODELS.find(m => m.value === detectedModel.value)?.label ?? detectedModel.value;
|
|
64
|
+
console.log(`Embedding model found (${sourceLabel(detectedModel.source)}): ${modelLabel}`);
|
|
65
|
+
const answer = await rl.question('Keep this model? [Y/n]: ');
|
|
66
|
+
if (answer.toLowerCase() === 'n') {
|
|
67
|
+
model = await promptModel(rl);
|
|
84
68
|
}
|
|
85
69
|
else {
|
|
86
|
-
|
|
87
|
-
|
|
70
|
+
model = detectedModel.value;
|
|
71
|
+
console.log('✓ Keeping existing model.\n');
|
|
88
72
|
}
|
|
89
73
|
}
|
|
74
|
+
else {
|
|
75
|
+
model = await promptModel(rl);
|
|
76
|
+
}
|
|
77
|
+
// --- Save ---
|
|
90
78
|
const newConfig = {
|
|
91
79
|
openai_api_key: apiKey,
|
|
92
80
|
embedding_model: model,
|
|
@@ -111,6 +99,63 @@ export async function init() {
|
|
|
111
99
|
rl.close();
|
|
112
100
|
}
|
|
113
101
|
}
|
|
102
|
+
async function promptApiKey(rl) {
|
|
103
|
+
for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt++) {
|
|
104
|
+
const remainingAttempts = MAX_ATTEMPTS - attempt;
|
|
105
|
+
const apiKey = await rl.question('Enter your OpenAI API key (sk-...): ');
|
|
106
|
+
if (apiKey === '') {
|
|
107
|
+
if (attempt === MAX_ATTEMPTS) {
|
|
108
|
+
console.log('Too many failed attempts. Aborting initialization.');
|
|
109
|
+
process.exit(2);
|
|
110
|
+
}
|
|
111
|
+
console.log(`Please try again (${remainingAttempts} attempts remaining):\n`);
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
if (!apiKey.startsWith('sk-')) {
|
|
115
|
+
console.log('Invalid API key format. Key must start with "sk-"');
|
|
116
|
+
if (attempt < MAX_ATTEMPTS) {
|
|
117
|
+
console.log(`Please try again (${remainingAttempts} attempts remaining):\n`);
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
console.log('Too many failed attempts. Aborting initialization.');
|
|
122
|
+
process.exit(2);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
console.log('');
|
|
126
|
+
return apiKey;
|
|
127
|
+
}
|
|
128
|
+
// Unreachable, but satisfies TypeScript
|
|
129
|
+
process.exit(2);
|
|
130
|
+
}
|
|
131
|
+
async function promptModel(rl) {
|
|
132
|
+
console.log('Select embedding model:');
|
|
133
|
+
MODELS.forEach((m, index) => {
|
|
134
|
+
console.log(` ${index + 1}. ${m.label}`);
|
|
135
|
+
});
|
|
136
|
+
console.log('');
|
|
137
|
+
for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt++) {
|
|
138
|
+
const remainingAttempts = MAX_ATTEMPTS - attempt;
|
|
139
|
+
const selection = await rl.question('Enter choice [1-3] (default: 1): ');
|
|
140
|
+
if (selection === '' || selection === '1') {
|
|
141
|
+
return MODELS[0].value;
|
|
142
|
+
}
|
|
143
|
+
const choice = parseInt(selection, 10);
|
|
144
|
+
if (choice >= 1 && choice <= MODELS.length) {
|
|
145
|
+
return MODELS[choice - 1].value;
|
|
146
|
+
}
|
|
147
|
+
if (attempt < MAX_ATTEMPTS) {
|
|
148
|
+
console.log('Invalid choice. Please enter a number between 1 and 3.');
|
|
149
|
+
console.log(`Please try again (${remainingAttempts} attempts remaining):\n`);
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
console.log('Too many failed attempts. Aborting initialization.');
|
|
153
|
+
process.exit(2);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
// Unreachable, but satisfies TypeScript
|
|
157
|
+
process.exit(2);
|
|
158
|
+
}
|
|
114
159
|
function maskApiKey(key) {
|
|
115
160
|
if (key.length <= 8) {
|
|
116
161
|
return 'sk-***';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGzE,MAAM,MAAM,GAAG;IACb,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,oDAAoD,EAAE;IAChG,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,0CAA0C,EAAE;IACtF,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,uC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AM,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;QAClC,CAAC;QAED,IAAI,OAAO,GAAG,YAAY,EAAE,CAAC;YAC3B,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAC;YACtE,OAAO,CAAC,GAAG,CAAC,qBAAqB,iBAAiB,yBAAyB,CAAC,CAAC;QAC/E,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAAC;YAClE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;IAED,wCAAwC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,SAAS,UAAU,CAAC,GAAW;IAC7B,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;QACpB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC;AACrC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiconnect/easy-rag",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "A TypeScript CLI tool for local RAG indexing and querying",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
|
-
"url": "https://github.com/johnjohn-aic/easy-rag.git"
|
|
39
|
+
"url": "git+https://github.com/johnjohn-aic/easy-rag.git"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/jest": "^29.5.14",
|