Skip to content

Commit a5842ef

Browse files
committed
chore: minor fixes from the PR comments
1 parent 44a3ce8 commit a5842ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/common/search/vectorSearchEmbeddings.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export class VectorSearchEmbeddings {
5555

5656
this.embeddings.set(embeddingDefKey, vectorFields);
5757
return vectorFields;
58-
} else {
59-
return definition;
6058
}
59+
60+
return definition;
6161
}
6262

6363
async findFieldsWithWrongEmbeddings(
@@ -121,6 +121,8 @@ export class VectorSearchEmbeddings {
121121
}
122122

123123
switch (definition.quantization) {
124+
// Because quantization is not defined by the use
125+
// we have to trust them in the format they use.
124126
case "none":
125127
return true;
126128
case "scalar":

0 commit comments

Comments
 (0)