Skip to content

Commit

Permalink
Add support for Flat index config
Browse files Browse the repository at this point in the history
  • Loading branch information
antas-marcin committed Dec 6, 2023
1 parent 15fb8c8 commit 64c18f8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/main/java/io/weaviate/client/v1/misc/model/BQConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package io.weaviate.client.v1.misc.model;

import lombok.AccessLevel;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import lombok.experimental.FieldDefaults;

@Getter
@Builder
@ToString
@EqualsAndHashCode
@FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE)
public class BQConfig {
Boolean enabled;
Long rescoreLimit;
Boolean cache;
}
5 changes: 4 additions & 1 deletion src/main/java/io/weaviate/client/v1/misc/model/PQConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@
@EqualsAndHashCode
@FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE)
public class PQConfig {

Boolean enabled;
// HNSW index specific settings
Boolean bitCompression;
Integer segments;
Integer centroids;
Integer trainingLimit;
Encoder encoder;
// Flat index specific settings
Long rescoreLimit;
Boolean cache;


@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ public class VectorIndexConfig {
Integer cleanupIntervalSeconds;
Boolean skip;
PQConfig pq;
BQConfig bq;
}

0 comments on commit 64c18f8

Please sign in to comment.