Skip to content

Commit 1fb1ae6

Browse files
committed
refactor: assistant support all sqlbot datasource #467
1 parent 96332cd commit 1fb1ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/system/crud/assistant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def get_db_schema(self, ds_id: int, question: str, embedding: bool = True) -> st
170170
for table in ds.tables:
171171
i += 1
172172
schema_table = ''
173-
schema_table += f"# Table: {db_name}.{table.name}" if ds.type != "mysql" else f"# Table: {table.name}"
173+
schema_table += f"# Table: {db_name}.{table.name}" if ds.type != "mysql" and ds.type != "es" else f"# Table: {table.name}"
174174
table_comment = table.comment
175175
if table_comment == '':
176176
schema_table += '\n[\n'

0 commit comments

Comments
 (0)