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:
Florian 2024-12-17 18:33:27 +08:00 committed by GitHub
parent 38a8fc11d9
commit 3745d7411d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 6 deletions

View File

@ -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:

View File

@ -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(

View File

@ -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:

View File

@ -547,7 +547,7 @@ def knowledge_requires():
setup_spec.extras["graph_rag"] = setup_spec.extras["rag"] + [
"neo4j",
"dbgpt-tugraph-plugins>=0.1.0rc1",
"dbgpt-tugraph-plugins>=0.1.1",
]