From 7f9461c68898284d685589a6de55ecdcf2d39f0a Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Sun, 5 Jan 2025 18:41:50 -0500 Subject: [PATCH] fix tests --- photography-site-demo.js/tests/vectorSearchTest.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/photography-site-demo.js/tests/vectorSearchTest.test.js b/photography-site-demo.js/tests/vectorSearchTest.test.js index ed1da298..d53d6ab0 100644 --- a/photography-site-demo.js/tests/vectorSearchTest.test.js +++ b/photography-site-demo.js/tests/vectorSearchTest.test.js @@ -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', @@ -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();