Skip to content

Commit 5e7c067

Browse files
committed
ai.mcp.server.knowledge-base.services.QueryService: formatting cleanup
1 parent 0d6f04f commit 5e7c067

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ai/mcp/server/knowledge-base/services/QueryService.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import path from 'path';
77

88
const {queryScoreWeights} = aiConfig;
99

10-
const cwd = process.cwd();
10+
const cwd = process.cwd();
1111
const insideNeo = process.env.npm_package_name?.includes('neo.mjs') ?? false;
12+
1213
dotenv.config({
1314
path : insideNeo ? path.resolve(cwd, '.env') : path.resolve(cwd, '../../.env'),
1415
quiet: true
@@ -83,7 +84,7 @@ class QueryService extends Base {
8384
}
8485

8586
const sourceScores = {};
86-
const queryWords = queryLower.replace(/[^a-zA-Z ]/g, '').split(' ').filter(w => w.length > 2);
87+
const queryWords = queryLower.replace(/[^a-zA-Z ]/g, '').split(' ').filter(w => w.length > 2);
8788

8889
results.metadatas[0].forEach((metadata, index) => {
8990
if (!metadata.source || metadata.source === 'unknown') return;

0 commit comments

Comments
 (0)