Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 5, 2025
1 parent 10d2bf4 commit 7f9461c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions photography-site-demo.js/tests/vectorSearchTest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const Photo = require('../server/models/Photo');
describe('Vector Search Tests', function() {
it('Photo Text Embedding Test', async function() {

// Generate 1536 random float numbers between 0 and 1
const targetVector = Array.from({ length: 1536 }, () => Math.random());
// Generate 768 random float numbers between 0 and 1
const targetVector = Array.from({ length: 768 }, () => Math.random());

const photo1 = new Photo({
name: 'testName1',
Expand All @@ -25,7 +25,7 @@ describe('Vector Search Tests', function() {
description: 'These violent delights have violent ends',
category: 'landscape',
image: 'testImage2',
$vector: Array.from({ length: 1536 }, () => Math.random())
$vector: Array.from({ length: 768 }, () => Math.random())
});
await photo2.save();

Expand Down

0 comments on commit 7f9461c

Please sign in to comment.