Skip to content

Commit 428f4d5

Browse files
fix: remove unused import in live RAG system test script
1 parent 40e1eee commit 428f4d5

16 files changed

Lines changed: 6115 additions & 6116 deletions

File tree

.claude/settings.local.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{
2-
"permissions": {
3-
"allow": [
4-
"Bash(cat:*)"
5-
],
6-
"deny": [],
7-
"ask": []
8-
}
9-
}
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(cat:*)"
5+
],
6+
"deny": [],
7+
"ask": []
8+
}
9+
}

.gitignore

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.*
7-
.yarn/*
8-
!.yarn/patches
9-
!.yarn/plugins
10-
!.yarn/releases
11-
!.yarn/versions
12-
13-
# testing
14-
/coverage
15-
16-
# next.js
17-
/.next/
18-
/out/
19-
20-
# production
21-
/build
22-
23-
# misc
24-
.DS_Store
25-
*.pem
26-
27-
# debug
28-
npm-debug.log*
29-
yarn-debug.log*
30-
yarn-error.log*
31-
.pnpm-debug.log*
32-
33-
# env files (can opt-in for committing if needed)
34-
.env*
35-
36-
# vercel
37-
.vercel
38-
39-
# typescript
40-
*.tsbuildinfo
41-
next-env.d.ts
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
35+
# vercel
36+
.vercel
37+
38+
# typescript
39+
*.tsbuildinfo
40+
next-env.d.ts
41+
config.bat

scripts/test-rag-comprehensive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ async function runTests() {
286286
const categories = [...new Set(testCases.map(t => t.category))];
287287
categories.forEach(cat => {
288288
const catTests = testCases.filter(t => t.category === cat);
289-
const catPassed = catTests.filter((t, i) => {
289+
const catPassed = catTests.filter((t) => {
290290
const globalIndex = testCases.indexOf(t);
291291
return globalIndex < passed + failed && !failedTests.some(f => f.question === t.question);
292292
}).length;

scripts/test-rag-live.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Load environment variables from .env.local
77
import * as dotenv from 'dotenv';
88
import * as path from 'path';
9-
import { fileURLToPath } from 'url';
109

1110
// Load .env.local
1211
dotenv.config({ path: path.resolve(process.cwd(), '.env.local') });
@@ -63,7 +62,7 @@ async function testRAGSystem() {
6362
console.log('');
6463

6564
for (let i = 0; i < testQuestions.length; i++) {
66-
const { q, expectedCategory } = testQuestions[i];
65+
const { q } = testQuestions[i];
6766

6867
log(`\n${'─'.repeat(70)}`, colors.blue);
6968
log(`Question ${i + 1}: "${q}"`, colors.blue + colors.bright);

0 commit comments

Comments
 (0)