Skip to content

Commit 5c4c1bf

Browse files
committed
test: update expected default configuration
Add 'muvera' config for Weaviate 1.31+. Add 'rq' config for Weaviate 1.32+. Update expected error string
1 parent 7d51c21 commit 5c4c1bf

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/schema/journey.test.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ describe('schema', () => {
104104
.withProperty(prop)
105105
.do()
106106
.catch((err: Error) => {
107-
expect(err.message).toEqual(
108-
'The request to Weaviate failed with status code: 422 and message: {"error":[{"message":"Tokenization is not allowed for data type \'int[]\'"}]}'
107+
expect(err.message.toLowerCase()).toEqual(
108+
'The request to Weaviate failed with status code: 422 and message: {"error":[{"message":"tokenization is not allowed for data type \'int[]\'"}]}'.toLowerCase()
109109
);
110110
});
111111
});
@@ -736,6 +736,16 @@ async function newClassObject(className: string, client: WeaviateClient): Promis
736736
? {
737737
aggregation: 'maxSim',
738738
enabled: false,
739+
...((await isVer(client, 31, 0))
740+
? {
741+
muvera: {
742+
enabled: false,
743+
dprojections: 16,
744+
ksim: 4,
745+
repetitions: 10,
746+
},
747+
}
748+
: {}),
739749
}
740750
: undefined,
741751
pq: {
@@ -759,6 +769,13 @@ async function newClassObject(className: string, client: WeaviateClient): Promis
759769
trainingLimit: 100000,
760770
}
761771
: undefined,
772+
rq: (await isVer(client, 32, 0))
773+
? {
774+
enabled: false,
775+
bits: 8,
776+
rescoreLimit: 20,
777+
}
778+
: undefined,
762779
skip: false,
763780
efConstruction: 128,
764781
vectorCacheMaxObjects: 500000,

0 commit comments

Comments
 (0)