File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
api/core/rag/datasource/vdb/opengauss Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class OpenGaussConfig(BaseModel):
25
25
database : str
26
26
min_connection : int
27
27
max_connection : int
28
- enable_pq : bool = False # Enable PQ acceleration
28
+ enable_pq : bool = False # Enable PQ acceleration
29
29
30
30
@model_validator (mode = "before" )
31
31
@classmethod
@@ -118,7 +118,7 @@ def _create_index(self, dimension: int):
118
118
with self ._get_cursor () as cur :
119
119
if dimension <= 2000 :
120
120
if self .pq_enabled :
121
- cur .execute (SQL_CREATE_INDEX_PQ .format (table_name = self .table_name , pq_m = int (dimension / 4 )))
121
+ cur .execute (SQL_CREATE_INDEX_PQ .format (table_name = self .table_name , pq_m = int (dimension / 4 )))
122
122
cur .execute ("SET hnsw_earlystop_threshold = 320" )
123
123
124
124
if not self .pq_enabled :
You can’t perform that action at this time.
0 commit comments