Skip to content

Commit 74fe2d1

Browse files
committed
fix: update test expectations for reduced hnsw_ef parameter
The PR changed hnsw_ef from 256 to 128 for improved search precision, but the tests were still expecting the old value. This commit updates all test expectations to match the new hnsw_ef value of 128.
1 parent 1b6ab34 commit 74fe2d1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/services/code-index/vector-store/__tests__/qdrant-client.spec.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ describe("QdrantVectorStore", () => {
12661266
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
12671267
limit: DEFAULT_MAX_SEARCH_RESULTS,
12681268
params: {
1269-
hnsw_ef: 256,
1269+
hnsw_ef: 128,
12701270
exact: false,
12711271
},
12721272
with_payload: {
@@ -1317,7 +1317,7 @@ describe("QdrantVectorStore", () => {
13171317
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
13181318
limit: DEFAULT_MAX_SEARCH_RESULTS,
13191319
params: {
1320-
hnsw_ef: 256,
1320+
hnsw_ef: 128,
13211321
exact: false,
13221322
},
13231323
with_payload: {
@@ -1343,7 +1343,7 @@ describe("QdrantVectorStore", () => {
13431343
score_threshold: customMinScore,
13441344
limit: DEFAULT_MAX_SEARCH_RESULTS,
13451345
params: {
1346-
hnsw_ef: 256,
1346+
hnsw_ef: 128,
13471347
exact: false,
13481348
},
13491349
with_payload: {
@@ -1367,7 +1367,7 @@ describe("QdrantVectorStore", () => {
13671367
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
13681368
limit: customMaxResults,
13691369
params: {
1370-
hnsw_ef: 256,
1370+
hnsw_ef: 128,
13711371
exact: false,
13721372
},
13731373
with_payload: {
@@ -1514,7 +1514,7 @@ describe("QdrantVectorStore", () => {
15141514
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
15151515
limit: DEFAULT_MAX_SEARCH_RESULTS,
15161516
params: {
1517-
hnsw_ef: 256,
1517+
hnsw_ef: 128,
15181518
exact: false,
15191519
},
15201520
with_payload: {
@@ -1579,7 +1579,7 @@ describe("QdrantVectorStore", () => {
15791579
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
15801580
limit: DEFAULT_MAX_SEARCH_RESULTS,
15811581
params: {
1582-
hnsw_ef: 256,
1582+
hnsw_ef: 128,
15831583
exact: false,
15841584
},
15851585
with_payload: {
@@ -1605,7 +1605,7 @@ describe("QdrantVectorStore", () => {
16051605
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
16061606
limit: DEFAULT_MAX_SEARCH_RESULTS,
16071607
params: {
1608-
hnsw_ef: 256,
1608+
hnsw_ef: 128,
16091609
exact: false,
16101610
},
16111611
with_payload: {
@@ -1629,7 +1629,7 @@ describe("QdrantVectorStore", () => {
16291629
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
16301630
limit: DEFAULT_MAX_SEARCH_RESULTS,
16311631
params: {
1632-
hnsw_ef: 256,
1632+
hnsw_ef: 128,
16331633
exact: false,
16341634
},
16351635
with_payload: {
@@ -1653,7 +1653,7 @@ describe("QdrantVectorStore", () => {
16531653
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
16541654
limit: DEFAULT_MAX_SEARCH_RESULTS,
16551655
params: {
1656-
hnsw_ef: 256,
1656+
hnsw_ef: 128,
16571657
exact: false,
16581658
},
16591659
with_payload: {
@@ -1677,7 +1677,7 @@ describe("QdrantVectorStore", () => {
16771677
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
16781678
limit: DEFAULT_MAX_SEARCH_RESULTS,
16791679
params: {
1680-
hnsw_ef: 256,
1680+
hnsw_ef: 128,
16811681
exact: false,
16821682
},
16831683
with_payload: {
@@ -1708,7 +1708,7 @@ describe("QdrantVectorStore", () => {
17081708
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
17091709
limit: DEFAULT_MAX_SEARCH_RESULTS,
17101710
params: {
1711-
hnsw_ef: 256,
1711+
hnsw_ef: 128,
17121712
exact: false,
17131713
},
17141714
with_payload: {
@@ -1739,7 +1739,7 @@ describe("QdrantVectorStore", () => {
17391739
score_threshold: DEFAULT_SEARCH_MIN_SCORE,
17401740
limit: DEFAULT_MAX_SEARCH_RESULTS,
17411741
params: {
1742-
hnsw_ef: 256,
1742+
hnsw_ef: 128,
17431743
exact: false,
17441744
},
17451745
with_payload: {

0 commit comments

Comments
 (0)