mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-30 15:21:02 +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)
|
||||
):
|
||||
raise ValueError(
|
||||
f"{self.name}[{self.role}] Missing resources[{action.resource_need}] required for "
|
||||
"runtime!"
|
||||
f"{self.name}[{self.role}] Missing resources"
|
||||
f"[{action.resource_need}] required for runtime!"
|
||||
)
|
||||
else:
|
||||
if not self.is_human and not self.is_team:
|
||||
|
@ -134,7 +134,9 @@ class DbChatOutputParser(BaseOutputParser):
|
||||
|
||||
if param["type"] == "response_vector_chart":
|
||||
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["data"] = json.loads(
|
||||
|
@ -139,8 +139,7 @@ class TuGraphStore(GraphStoreBase):
|
||||
except ImportError:
|
||||
logger.error(
|
||||
"dbgpt-tugraph-plugins is not installed, "
|
||||
"pip install dbgpt-tugraph-plugins==0.1.0rc1 -U -i "
|
||||
"https://pypi.org/simple"
|
||||
"pip install dbgpt-tugraph-plugins==0.1.1"
|
||||
)
|
||||
plugin_path = get_plugin_binary_path("leiden") # type: ignore
|
||||
with open(plugin_path, "rb") as f:
|
||||
|
Loading…
Reference in New Issue
Block a user