This commit is contained in:
ayush chaurasia
2024-04-15 17:19:04 +05:30
parent fd8de238bb
commit 6074e6b7ee
2 changed files with 7 additions and 7 deletions

View File

@@ -214,7 +214,7 @@ class SentenceTransformersTuner(BaseEmbeddingTuner):
def helper(self) -> None:
"""A helper method."""
logging.info("Finetuning complete.")
logging.info(f"Model saved to {self.path}.") # noqa
logging.info(f"Model saved to {self.path}.") # noqa
logging.info("You can now use the model as follows:")
logging.info(
f"model = get_registry().get('sentence-transformers').create(name='./{self.path}')" # noqa

View File

@@ -354,9 +354,9 @@ class RemoteTable(Table):
params["on"] = merge._on[0]
params["when_matched_update_all"] = str(merge._when_matched_update_all).lower()
if merge._when_matched_update_all_condition is not None:
params[
"when_matched_update_all_filt"
] = merge._when_matched_update_all_condition
params["when_matched_update_all_filt"] = (
merge._when_matched_update_all_condition
)
params["when_not_matched_insert_all"] = str(
merge._when_not_matched_insert_all
).lower()
@@ -364,9 +364,9 @@ class RemoteTable(Table):
merge._when_not_matched_by_source_delete
).lower()
if merge._when_not_matched_by_source_condition is not None:
params[
"when_not_matched_by_source_delete_filt"
] = merge._when_not_matched_by_source_condition
params["when_not_matched_by_source_delete_filt"] = (
merge._when_not_matched_by_source_condition
)
self._conn._client.post(
f"/v1/table/{self._name}/merge_insert/",