mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-05 10:29:36 +00:00
chore(graphrag): upgrade dbgpt-tugraph-plugins to version 0.1.1 (#2213)
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
This commit is contained in:
parent
38a8fc11d9
commit
3745d7411d
@ -80,8 +80,8 @@ class ConversableAgent(Role, Agent):
|
|||||||
or not self.resource.get_resource_by_type(action.resource_need)
|
or not self.resource.get_resource_by_type(action.resource_need)
|
||||||
):
|
):
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"{self.name}[{self.role}] Missing resources[{action.resource_need}] required for "
|
f"{self.name}[{self.role}] Missing resources"
|
||||||
"runtime!"
|
f"[{action.resource_need}] required for runtime!"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if not self.is_human and not self.is_team:
|
if not self.is_human and not self.is_team:
|
||||||
|
@ -134,7 +134,9 @@ class DbChatOutputParser(BaseOutputParser):
|
|||||||
|
|
||||||
if param["type"] == "response_vector_chart":
|
if param["type"] == "response_vector_chart":
|
||||||
df, visualizable = self.parse_vector_data_with_pca(df)
|
df, visualizable = self.parse_vector_data_with_pca(df)
|
||||||
param["type"] = "response_scatter_chart" if visualizable else "response_table"
|
param["type"] = (
|
||||||
|
"response_scatter_chart" if visualizable else "response_table"
|
||||||
|
)
|
||||||
|
|
||||||
param["sql"] = prompt_response.sql
|
param["sql"] = prompt_response.sql
|
||||||
param["data"] = json.loads(
|
param["data"] = json.loads(
|
||||||
|
@ -139,8 +139,7 @@ class TuGraphStore(GraphStoreBase):
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
logger.error(
|
logger.error(
|
||||||
"dbgpt-tugraph-plugins is not installed, "
|
"dbgpt-tugraph-plugins is not installed, "
|
||||||
"pip install dbgpt-tugraph-plugins==0.1.0rc1 -U -i "
|
"pip install dbgpt-tugraph-plugins==0.1.1"
|
||||||
"https://pypi.org/simple"
|
|
||||||
)
|
)
|
||||||
plugin_path = get_plugin_binary_path("leiden") # type: ignore
|
plugin_path = get_plugin_binary_path("leiden") # type: ignore
|
||||||
with open(plugin_path, "rb") as f:
|
with open(plugin_path, "rb") as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user