Skip to content

Commit b165678

Browse files
fixed a couple of issues in parsing to string
1 parent a03e9c4 commit b165678

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mindsdb_sql_parser/ast/mindsdb/knowledge_base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ def get_string(self, *args, **kwargs):
6666
using_ar = []
6767
if self.storage:
6868
using_ar.append(f" STORAGE={self.storage.to_string()}")
69-
embedding_model_str = ""
70-
if self.embedding_model_str:
69+
if self.embedding_model:
7170
using_ar.append(f" EMBEDDING_MODEL={json.dumps(self.embedding_model)}")
72-
if self.reranking_model_str:
71+
if self.reranking_model:
7372
using_ar.append(f" RERANKING_MODEL={json.dumps(self.reranking_model)}")
7473

7574
params = self.params.copy()

0 commit comments

Comments
 (0)