Skip to content

Commit 6c3142b

Browse files
chore: address copilot warnings
1 parent fbb3d0f commit 6c3142b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/common/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ function warnIfVectorSearchNotEnabledCorrectly(config: UserConfig): void {
378378
if (vectorSearchEnabled && !embeddingsProviderConfigured) {
379379
console.warn(`\
380380
Warning: 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

src/common/search/vectorSearchEmbeddingsManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)