Skip to content

Commit 82f66af

Browse files
committed
Making sure test works
1 parent 601da03 commit 82f66af

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/test/11-managing-indexes.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,17 @@ describe("Managing indexes", function () {
3333
it.skip("should create a vector index", async () => {
3434
// Available in ArangoDB 3.12.4+.
3535
// Only enabled with the --experimental-vector-index startup option.
36-
const data = [
37-
{embedding: [1, 2, 3]},
38-
{embedding: [1, 2, 3]},
39-
{embedding: [1, 2, 3]},
40-
];
36+
const data = Array.from({ length: 128 }, (_, cnt) => ({
37+
_key: `vec${cnt}`,
38+
embedding: Array(128).fill(cnt),
39+
}));
4140
await collection.import(data);
4241
const info = await collection.ensureIndex({
4342
type: "vector",
4443
fields: ["embedding"],
4544
params: {
4645
metric: "cosine",
47-
dimension: 3,
46+
dimension: 128,
4847
nLists: 2,
4948
},
5049
});

0 commit comments

Comments
 (0)