File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ function warnIfVectorSearchNotEnabledCorrectly(config: UserConfig): void {
378378 if ( vectorSearchEnabled && ! embeddingsProviderConfigured ) {
379379 console . warn ( `\
380380Warning: Vector search is enabled but no embeddings provider is configured.
381- - Set the 'voyageApiKey' configuration option to enable auto-embeddings during document insertion and text-based queries with $vectorSearch.\
381+ - Set an embeddings provider configuration option to enable auto-embeddings during document insertion and text-based queries with $vectorSearch.\
382382` ) ;
383383 }
384384
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ export class VectorSearchEmbeddingsManager {
217217 } ) ;
218218 }
219219
220- if ( ! fieldRef . every ( ( e ) => this . isANumber ( e ) ) ) {
220+ if ( fieldRef . some ( ( e ) => ! this . isANumber ( e ) ) ) {
221221 return constructError ( {
222222 actualNumDimensions : fieldRef . length ,
223223 actualQuantization : "none" ,
@@ -275,7 +275,7 @@ export class VectorSearchEmbeddingsManager {
275275 } ) ;
276276 }
277277
278- if ( ! fieldRef . every ( ( e ) => this . isANumber ( e ) ) ) {
278+ if ( fieldRef . some ( ( e ) => ! this . isANumber ( e ) ) ) {
279279 return constructError ( {
280280 actualNumDimensions : fieldRef . length ,
281281 actualQuantization : "scalar" ,
You can’t perform that action at this time.
0 commit comments