Skip to content

Commit fd386c7

Browse files
committed
fix settings.py in config
1 parent 317dad2 commit fd386c7

61 files changed

Lines changed: 10 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
294 Bytes
Binary file not shown.
308 Bytes
Binary file not shown.
381 Bytes
Binary file not shown.
395 Bytes
Binary file not shown.
7.8 KB
Binary file not shown.
11.4 KB
Binary file not shown.

src/config/settings.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ def to_yaml(self, filepath: str) -> None:
186186
'sparse_model': self.encoder.sparse_model,
187187
'max_length': self.encoder.max_length,
188188
'normalize_dense': self.encoder.normalize_dense,
189-
'device': self.encoder.device
189+
'device': self.encoder.device,
190+
'use_specter2': self.encoder.use_specter2
190191
},
191192
'index': {
192193
'batch_size': self.index.batch_size,
193-
'dense_output_dir': self.index.dense_output_dir,
194-
'sparse_output_dir': self.index.sparse_output_dir,
195-
'use_gpu_faiss': self.index.use_gpu_faiss,
196-
'checkpoint_enabled': self.index.checkpoint_enabled
194+
'checkpoint_enabled': self.index.checkpoint_enabled,
195+
'chunk_size': self.index.chunk_size,
196+
'sparse_encoder_batch_size': self.index.sparse_encoder_batch_size
197197
},
198198
'search': {
199199
'top_k': self.search.top_k,
@@ -212,6 +212,11 @@ def to_yaml(self, filepath: str) -> None:
212212
'text_key': self.data.text_key,
213213
'id_key': self.data.id_key,
214214
'title_key': self.data.title_key
215+
},
216+
'milvus': {
217+
'host': self.milvus.host,
218+
'port': self.milvus.port,
219+
'collection_name': self.milvus.collection_name
215220
}
216221
}
217222

337 Bytes
Binary file not shown.
351 Bytes
Binary file not shown.
1.04 KB
Binary file not shown.

0 commit comments

Comments
 (0)