@@ -424,10 +424,10 @@ describe('VectorDataApi Integration Tests', () => {
424424 } )
425425
426426 const data = assertSuccessResponse ( response )
427- expect ( data . matches ) . toBeDefined ( )
428- expect ( Array . isArray ( data . matches ) ) . toBe ( true )
429- expect ( data . matches . length ) . toBeGreaterThan ( 0 )
430- expect ( data . matches . length ) . toBeLessThanOrEqual ( 3 )
427+ expect ( data . vectors ) . toBeDefined ( )
428+ expect ( Array . isArray ( data . vectors ) ) . toBe ( true )
429+ expect ( data . vectors . length ) . toBeGreaterThan ( 0 )
430+ expect ( data . vectors . length ) . toBeLessThanOrEqual ( 3 )
431431 } )
432432
433433 it ( 'should return vectors with distance scores' , async ( ) => {
@@ -441,8 +441,8 @@ describe('VectorDataApi Integration Tests', () => {
441441 } )
442442
443443 const data = assertSuccessResponse ( response )
444- expect ( data . matches [ 0 ] . distance ) . toBeDefined ( )
445- expect ( typeof data . matches [ 0 ] . distance ) . toBe ( 'number' )
444+ expect ( data . vectors [ 0 ] . distance ) . toBeDefined ( )
445+ expect ( typeof data . vectors [ 0 ] . distance ) . toBe ( 'number' )
446446 } )
447447
448448 it ( 'should filter by metadata' , async ( ) => {
@@ -456,10 +456,10 @@ describe('VectorDataApi Integration Tests', () => {
456456 } )
457457
458458 const data = assertSuccessResponse ( response )
459- expect ( data . matches . length ) . toBeGreaterThan ( 0 )
459+ expect ( data . vectors . length ) . toBeGreaterThan ( 0 )
460460
461461 // All results should match filter
462- for ( const match of data . matches ) {
462+ for ( const match of data . vectors ) {
463463 expect ( match . metadata ?. category ) . toBe ( 'tech' )
464464 }
465465 } )
@@ -476,7 +476,7 @@ describe('VectorDataApi Integration Tests', () => {
476476
477477 const data = assertSuccessResponse ( response )
478478
479- for ( const match of data . matches ) {
479+ for ( const match of data . vectors ) {
480480 expect ( match . metadata ?. category ) . toBe ( 'tech' )
481481 expect ( match . metadata ?. published ) . toBe ( true )
482482 }
@@ -491,7 +491,7 @@ describe('VectorDataApi Integration Tests', () => {
491491 } )
492492
493493 const data = assertSuccessResponse ( response )
494- expect ( data . matches . length ) . toBeLessThanOrEqual ( 2 )
494+ expect ( data . vectors . length ) . toBeLessThanOrEqual ( 2 )
495495 } )
496496
497497 it ( 'should return empty matches when filter matches nothing' , async ( ) => {
@@ -504,7 +504,7 @@ describe('VectorDataApi Integration Tests', () => {
504504 } )
505505
506506 const data = assertSuccessResponse ( response )
507- expect ( data . matches ) . toEqual ( [ ] )
507+ expect ( data . vectors ) . toEqual ( [ ] )
508508 } )
509509
510510 it ( 'should query without metadata in results' , async ( ) => {
@@ -518,8 +518,8 @@ describe('VectorDataApi Integration Tests', () => {
518518 } )
519519
520520 const data = assertSuccessResponse ( response )
521- expect ( data . matches [ 0 ] . key ) . toBeDefined ( )
522- expect ( data . matches [ 0 ] . metadata ) . toBeUndefined ( )
521+ expect ( data . vectors [ 0 ] . key ) . toBeDefined ( )
522+ expect ( data . vectors [ 0 ] . metadata ) . toBeUndefined ( )
523523 } )
524524 } )
525525
0 commit comments