mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-06 03:20:41 +00:00
feat[Datasource]:add summary refresh (#1433)
Co-authored-by: hzh97 <2976151305@qq.com>
This commit is contained in:
@@ -185,8 +185,11 @@ class ConnectorManager(BaseComponent):
|
||||
|
||||
async def async_db_summary_embedding(self, db_name, db_type):
|
||||
"""Async db summary embedding."""
|
||||
# TODO: async embedding
|
||||
self.db_summary_client.db_summary_embedding(db_name, db_type)
|
||||
executor = self.system_app.get_component(
|
||||
ComponentType.EXECUTOR_DEFAULT, ExecutorFactory
|
||||
).create() # type: ignore
|
||||
executor.submit(self.db_summary_client.db_summary_embedding, db_name, db_type)
|
||||
return True
|
||||
|
||||
def add_db(self, db_info: DBConfig):
|
||||
"""Add db connect info.
|
||||
|
Reference in New Issue
Block a user